bool giveToNPC(GrabMe.kind thisKind) { NPC_Character NPCto = to.GetComponent <NPC_Character> (); from.GetComponent <CharacterOurs> ().drop(thisKind, NPCto.placeToDrop); NPCto.setTakeItem(true); NPCto.grab(NPCto.item); return(!from.GetComponent <CharacterOurs> ().has(thisKind)); }
void InitEnemySquad() { enemySquad = new NPC_Character[] { new NPC_Character("Grunt_0", NPCClass.Grunt), new NPC_Character("Grunt_1", NPCClass.Grunt) }; enemySquad[0].InitStats(20, 5, 5, 5, 5, 5); enemySquad[1].InitStats(20, 5, 5, 5, 5, 5); }
void InitEnemySquad() { enemySquad = new NPC_Character[] { new NPC_Character("Grunt_0", NPCClass.Grunt), new NPC_Character("Grunt_1", NPCClass.Grunt) }; enemySquad[0].InitStats(20, 5, 5, 5, 5, 5); enemySquad[1].InitStats(20, 5, 5, 5, 5, 5); }
public void SetCharacter(NPC_Character c, int index) { myChar = c; currActionPoints = myChar.actionPoints; myEnemyIndex = index; Debug.Log(myChar.Name + " initialized!"); Debug.Log("HP: " + myChar.charStats.Hitpoints); }
public void SetCharacter(NPC_Character c, int index) { myChar = c; currActionPoints = myChar.actionPoints; myEnemyIndex = index; Debug.Log(myChar.Name + " initialized!"); Debug.Log("HP: " + myChar.charStats.Hitpoints); }