Esempio n. 1
0
    void Start()
    {
        sprite = base.transform.GetChild(2);

        rb2d = GetComponent <Rigidbody2D>();
        equipPlayerWeapon = GetComponent <EquipPlayerWeapon>();

        /*  if (currentWeaponData.WeaponNumber == 3)
         * {
         *    state = State.RecoilPhysicsState;
         * }*/
    }
Esempio n. 2
0
 private void OnEnable()
 {
     equipPlayerWeapon = FindObjectOfType <EquipPlayerWeapon>();
     Toggle(isOn);
 }