コード例 #1
0
        public HeavyActionDistributor(IGameLoopController gameLoopController)
        {
            _gameLoopController = gameLoopController;
            _actionsQueue       = new Queue <Action>();

            _gameLoopController.Updated += UpdateHandler;
        }
コード例 #2
0
 public AttackAction(
     IGameLoopController gameloopController,
     IBaseActionController baseActionController)
 {
     _gameloopController   = gameloopController;
     _baseActionController = baseActionController;
     _delayTime            = 1.5f;
 }
コード例 #3
0
 public CameraController(
     Camera camera,
     IGameLoopController gameLoopController)
 {
     _camera             = camera;
     _gameLoopController = gameLoopController;
     _yPosition          = 15;
 }
コード例 #4
0
 public OneUnitAnimationController(IUnitSettings unitSettings, IGameLoopController gameLoopController)
 {
     _unit               = unitSettings.GraphicObject;
     _unitScript         = _unit.GetComponentInChildren(typeof(IUnitScript)) as IUnitScript;
     _gameLoopController = gameLoopController;
 }
コード例 #5
0
 public IdleAction(IGameLoopController gameloopController)
 {
     _gameloopController = gameloopController;
     delayTime           = UnityEngine.Random.Range(1.0f, 5.0f);
 }
コード例 #6
0
 public void Initialize(Camera camera, IGameLoopController gameLoopController, int yPosition = 15)
 {
     _camera             = camera;
     _yPosition          = yPosition;
     _gameLoopController = gameLoopController;
 }
コード例 #7
0
 public void DisposeInternal()
 {
     _gameloopController   = null;
     _baseActionController = null;
     base.DisposeInternal();
 }