예제 #1
0
    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;
        }
        }
    }
예제 #2
0
    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;
        }
    }
예제 #3
0
 public AnatomyArm(Side _side) : base()
 {
     side       = _side;
     equip_hand = new EquipHand();
     equip_arm  = new EquipArm();
 }