public void equip(EquipHand hand) { GameObject toEquip; switch (hand) { case EquipHand.GUN: { toEquip = (GameObject)GameObject.Instantiate(gun, new Vector3(0, 0, 1), Quaternion.identity, transform); toEquip.transform.localPosition = new Vector3(0, 0, 0); break; } case EquipHand.DASH: { toEquip = (GameObject)GameObject.Instantiate(dasher, new Vector3(0, 0, 1), Quaternion.identity, transform); toEquip.transform.localPosition = new Vector3(0, 0, 0); break; } case EquipHand.TENTACLE: { toEquip = (GameObject)GameObject.Instantiate(attacker, new Vector3(0, 0, 1), Quaternion.identity, transform); toEquip.transform.localPosition = new Vector3(0, 0, 0); break; } case EquipHand.SHIELD: { toEquip = (GameObject)GameObject.Instantiate(shield, new Vector3(0, 0, 1), Quaternion.identity, transform); toEquip.transform.localPosition = new Vector3(0, 0, 0); break; } } }
private void HandleClick(EquipHand hand, TentacleAnimation tentacleAnim) { switch (hand) { case EquipHand.GUN: handleGun(tentacleAnim); break; case EquipHand.DASH: handleDash(tentacleAnim); break; case EquipHand.TENTACLE: handleTentacle(tentacleAnim); break; case EquipHand.SHIELD: handleShield(tentacleAnim); break; } }
public AnatomyArm(Side _side) : base() { side = _side; equip_hand = new EquipHand(); equip_arm = new EquipArm(); }