예제 #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);
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     curModel = allModels [Random.Range(0, 2)];
 }
예제 #3
0
 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);
 }
예제 #4
0
 public void AssignSprites(ISpriteModel model, Enemy enemy)
 {
     model.AssignSprites(this, enemy);
 }