So, I made a code that includes string / int arrays with some for loops. There is a part in my code where it has more than 1 line, but how do you make a plural line when there are several? Here is the piece of code I'm talking about:
System.Collections;
System.Collections.Generic;
UnityEngine;
VoidFunctions: MonoBehaviour
{ public string [] Enemies = { "Ghoul", "Skeleton", "Zombie" }; public int [] enemyCount = {1, 2, 2}; public virtual void Start() { for (int = 0; < Enemies.Length; ++) { ( [i], Count [i]); } } void Fight (string enemy, int amount) { print (this.name + "" + ); print (this.name + "kill" + amount + "" + ); }
}
>
So, for the second line of "Skeleton" there are 2 killed, but it turns out "killed 2 skeletons" ... how do you make it multiple?
source
share