Example #1
0
 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>();
 }
Example #2
0
 protected new void Awake()
 {
     base.Awake();
     if (shooter == null)
     {
         shooter = GetComponentInChildren <Shooter>();
     }
     if (aimer == null)
     {
         aimer = GetComponentInChildren <PlayerAimer>();
     }
 }
Example #3
0
 protected new void Awake()
 {
     base.Awake();
     if (shooter == null)
     {
         shooter = GetComponentInChildren <Shooter>();
     }
     if (aimer == null)
     {
         aimer = GetComponentInChildren <PlayerAimer>();
     }
     animActions = gameObject.GetComponent <AnimationActions>();
 }