private void Awake() { rect = GetComponent <RectTransform>(); stateMan = player.GetComponent <PlayerStateManager>(); abilities = player.GetComponent <PlayerAbilities>(); equipMan = player.GetComponent <EquipmentManager>(); plAimer = player.GetComponent <PlayerAimer>(); shootSys = player.GetComponent <PlayerShootingSystem>(); }
protected new void Awake() { base.Awake(); if (shooter == null) { shooter = GetComponentInChildren <Shooter>(); } if (aimer == null) { aimer = GetComponentInChildren <PlayerAimer>(); } }
protected new void Awake() { base.Awake(); if (shooter == null) { shooter = GetComponentInChildren <Shooter>(); } if (aimer == null) { aimer = GetComponentInChildren <PlayerAimer>(); } animActions = gameObject.GetComponent <AnimationActions>(); }