Exemplo n.º 1
0
        public override void Initialize(OperationHandler operationHandler)
        {
            base.Initialize(operationHandler);

            Event.Open(PlayerEvent.Move);
            runtimeSpeed = speed;
        }
Exemplo n.º 2
0
 public void Initialize(OperationHandler operationHandler)
 {
     foreach (var group in groups)
     {
         group.Initialize(operationHandler, reference.action);
     }
 }
Exemplo n.º 3
0
        public void Initialize(OperationHandler operationHandler, InputAction inputAction)
        {
            runtimeInputHandler = Object.Instantiate(inputHandler);
            runtimeInputHandler.Initialize();
            runtimeInputHandler.Bind(inputAction);

            runtimeOperations = new Operation[operations.Length];
            for (var i = 0; i < operations.Length; i++)
            {
                var runtimeOperation = Object.Instantiate(operations[i]);
                runtimeOperation.Initialize(operationHandler);
                runtimeOperation.Bind(runtimeInputHandler);

                runtimeOperations[i] = runtimeOperation;
            }
        }
Exemplo n.º 4
0
        public override void Initialize(OperationHandler operationHandler)
        {
            base.Initialize(operationHandler);

            runtimeOperations    = new Operation[subOperations.Length + 1];
            runtimeOperations[0] = Instantiate(parentOperation);
            runtimeParentOperation.Initialize(operationHandler);

            for (var i = 1; i < runtimeOperations.Length; i++)
            {
                var runtimeSubOperation = Instantiate(subOperations[i - 1]);
                runtimeSubOperation.Initialize(operationHandler);
                runtimeSubOperation.Bind(runtimeParentOperation);

                runtimeOperations[i] = runtimeSubOperation;
            }
        }
Exemplo n.º 5
0
 public virtual void Initialize(OperationHandler operationHandler) => this.operationHandler = operationHandler;
Exemplo n.º 6
0
 public override void Initialize(OperationHandler operationHandler)
 {
     base.Initialize(operationHandler);
     runtimeOperation = Instantiate(operation);
     runtimeOperation.Initialize(operationHandler);
 }