CharacterClass.GetSprites C# (CSharp) Method

GetSprites() public method

public GetSprites ( string name ) : string[]
name string
return string[]
	public string[] GetSprites(string name){ //Returns list of sprites for a specific character name
		for (int p = 0; p < peopleList.GetLength(0); p++){
			if (peopleList[p, 0] == name) {
				string[] sprites = new string[peopleList.GetLength (1) - 1];
				for (int i = 0; i < sprites.Length; i++) {
					sprites [i] = peopleList [p, i + 1];
				}
				return sprites;
			}
		}
		return null;
	}