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); }
// Use this for initialization void Start() { curModel = allModels [Random.Range(0, 2)]; }
public virtual void Draw(ISprite sprite, ISpriteModel spriteModel) { this.spriteBatch.Draw(sprite.SpriteData.Data.Texture, spriteModel.Position, sprite.CurrentFrame, spriteModel.Color, spriteModel.Rotation, spriteModel.Origin, spriteModel.Scale, spriteModel.Effect, spriteModel.Depth); }
public void AssignSprites(ISpriteModel model, Enemy enemy) { model.AssignSprites(this, enemy); }