Esempio n. 1
0
    public void AssignSprites(GameManager gameManager, Enemy enemy)
    {
        // check the game manager counter
        int genderIndex = gameManager.genderIndexes[gameManager.GetGenderCounter()];

        // get the correct gender
        ISpriteModel currentGender = gameManager.allModels[genderIndex];

        enemy.faceSprite.gameObject.SetActive(false);

        // now assign sprites
        currentGender.AssignSprites(gameManager, enemy);
    }
Esempio n. 2
0
 public void AssignSprites(ISpriteModel model, Enemy enemy)
 {
     model.AssignSprites(this, enemy);
 }