Ejemplo n.º 1
0
 private void Start()
 {
     controller    = GetComponent <CharacterController>();
     positionCache = new List <Vector3>();
     moveExecutor  = new TickExecutor(120, Target);
     moveExecutor.Start();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Start event
        /// </summary>
        private void Start()
        {
            positionsCache = new List <Vector3>();
            controller     = GetComponent <CharacterController>();

            moveExecutor = new TickExecutor(120, Target);
            //sendMoveExecutor = new TickExecutor(60, SendMove);

            moveExecutor.Start();
            //sendMoveExecutor.Start();

            state       = MoveState.Idle;
            Enabled     = true;
            inputVector = new Vector2(0, 0);
        }
Ejemplo n.º 3
0
        //-----------------------------------------------------------------------------

        public void Start() => m_pExecutor.Start();