Example #1
0
        void InitializeEntityObject(BaseEntityClass entity)
        {
            GameObject entitySprite = new GameObject();

            renderer = entitySprite.AddComponent <SpriteRenderer> ();
            entitySprite.GetComponent <SpriteRenderer> ().sprite = GetComponent <SpriteRenderer>().sprite = dictSprites[entity.TextureName];
            entitySprite.transform.position   = entity.Position;
            entitySprite.transform.localScale = new Vector3(3.0f, 3.0f, 3.0f);
            entity.EntityGameObject           = entitySprite;
        }
Example #2
0
 void AnimateDamage(BaseEntityClass entity)
 {
     iTween.ShakePosition(entity.EntityGameObject, iTween.Hash("x", 0.1f, "y", 0.1f, "time", 0.5f));
 }
Example #3
0
 void CalculateDamage(BaseAbilityClass ability, BaseEntityClass defender)
 {
 }