private void Start() { player = transform.root.gameObject; intentToAction = player.GetComponent <IntentToAction>(); initialAttackDisplacement = player.GetComponent <Collider2D>().bounds.size; initialAttackDisplacement.y /= 2; statsRPG = player.GetComponent <StatsRPG>(); LoadWeapon(); SwitchWeapon(); animator = activeWeapon.transform.GetChild(0).GetComponent <Animator>(); }
void Start() { //playerControls.Gameplay.Enable(); intentToAction = GetComponent <IntentToAction>(); }