コード例 #1
0
 private void GetManagers()
 {
     _ground     = gameObject.GetOrAdd <ManagerGroundProbe>();
     _health     = gameObject.GetOrAdd <ManagerHealth>();
     _collision  = gameObject.GetOrAdd <ManagerCollision>();
     _locomotion = gameObject.GetOrAdd <ManagerLocomotion>();
 }
コード例 #2
0
 public StateMovingCurvedGround(Fsm fsm)
     : base(fsm)
 {
     _locomotion = Fsm.gameObject.GetOrAdd<ManagerLocomotion>();
     _ground = Fsm.gameObject.GetOrAdd<ManagerGroundProbe>();
     _input = Fsm.gameObject.GetComponent<IManagerInput>();
 }
コード例 #3
0
 private void GetManagers()
 {
     _ground = gameObject.GetOrAdd<ManagerGroundProbe>();
     _health = gameObject.GetOrAdd<ManagerHealth>();
     _collision = gameObject.GetOrAdd<ManagerCollision>();
     _locomotion = gameObject.GetOrAdd<ManagerLocomotion>();
 }
コード例 #4
0
 public StateMovingCurvedGround(Fsm fsm) : base(fsm)
 {
     _locomotion = Fsm.gameObject.GetOrAdd <ManagerLocomotion>();
     _ground     = Fsm.gameObject.GetOrAdd <ManagerGroundProbe>();
     _input      = Fsm.gameObject.GetComponent <IManagerInput>();
 }