void Start() { sprite = base.transform.GetChild(2); rb2d = GetComponent <Rigidbody2D>(); equipPlayerWeapon = GetComponent <EquipPlayerWeapon>(); /* if (currentWeaponData.WeaponNumber == 3) * { * state = State.RecoilPhysicsState; * }*/ }
private void OnEnable() { equipPlayerWeapon = FindObjectOfType <EquipPlayerWeapon>(); Toggle(isOn); }