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); }
public void AssignSprites(ISpriteModel model, Enemy enemy) { model.AssignSprites(this, enemy); }