// Use this for initialization void Start() { spriteRenderer = gameObject.GetComponent <SpriteRenderer>(); currentPos = this.transform.position; oriColor = spriteRenderer.color; spriteRenderer.color = Color.gray; circleAttackTimer = 0; //set weakness and sprites if (elementType.ToString() == "Fire") { weakElement = "Water"; handBoss.idleSprite = fireIdleSprite; handBoss.clenchSprite = fireClenchSprite; handBoss.explodeSprite = fireExplodeSprite; } else if (elementType.ToString() == "Water") { weakElement = "Earth"; handBoss.idleSprite = waterIdleSprite; handBoss.clenchSprite = waterClenchSprite; handBoss.explodeSprite = waterExplodeSprite; } else if (elementType.ToString() == "Air") { weakElement = "Fire"; handBoss.idleSprite = airIdleSprite; handBoss.clenchSprite = airClenchSprite; handBoss.explodeSprite = airExplodeSprite; } else if (elementType.ToString() == "Earth") { weakElement = "Air"; handBoss.idleSprite = earthIdleSprite; handBoss.clenchSprite = earthClenchSprite; handBoss.explodeSprite = earthExplodeSprite; } }
public string GetName(ELEMENT_TYPE e) { return(e.ToString().ToLower()); }
public string GetName(ELEMENT_TYPE e) { return e.ToString().ToLower(); }