Beispiel #1
0
    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));
    }
Beispiel #2
0
    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);
    }
Beispiel #3
0
    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);
    }
Beispiel #4
0
    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);
    }
Beispiel #5
0
    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);
    }