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; }
void AnimateDamage(BaseEntityClass entity) { iTween.ShakePosition(entity.EntityGameObject, iTween.Hash("x", 0.1f, "y", 0.1f, "time", 0.5f)); }
void CalculateDamage(BaseAbilityClass ability, BaseEntityClass defender) { }