private void Start() { controller = GetComponent <CharacterController>(); positionCache = new List <Vector3>(); moveExecutor = new TickExecutor(120, Target); moveExecutor.Start(); }
/// <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); }
//----------------------------------------------------------------------------- public void Start() => m_pExecutor.Start();