public void TransformerRarity(int rarity) { Battle.BattleHandler battleHandler = new BattleHandler(); if (rarity >= 1) { Instantiate(Rarity, battleHandler.Pposition1 + new Vector3(-230, -50, 0), Quaternion.identity); } if (rarity >= 2) { Instantiate(Rarity, battleHandler.Pposition1 + new Vector3(-230, -38, 0), Quaternion.identity); } if (rarity >= 3) { Instantiate(Rarity, battleHandler.Pposition1 + new Vector3(-230, -26, 0), Quaternion.identity); } if (rarity >= 4) { Instantiate(Rarity, battleHandler.Pposition1 + new Vector3(-230, -14, 0), Quaternion.identity); } if (rarity >= 5) { Instantiate(Rarity, battleHandler.Pposition1 + new Vector3(-230, -2, 0), Quaternion.identity); } }
public void RenderShadow(bool renderShadow) { Battle.BattleHandler battleHandler = new BattleHandler(); if (renderShadow) { Instantiate(CharacterShadow, battleHandler.Pposition1 + new Vector3(-64.5f, -27, 0), Quaternion.identity); } }