Exemple #1
0
    internal void AttemptAction(Actionable pAction)
    {
        Actioner.AttemptAction(pAction, MovementController);
        return;

        //CurrentAction = pAction;
        //var parameters = pAction.GetActionableParameters();

        //if(parameters.ActionParticles != null)
        //{
        //    ActionableParticles = Instantiate(parameters.ActionParticles, pAction.transform); //Start particles
        //    ActionableParticles.transform.rotation = Quaternion.LookRotation(Vector3.forward);
        //}

        //PlayActionSound();

        //pAction.OnStartAction();
        //ActionAfterFinishing = pAction.OnFinishedAction;
        //var progressBar = Instantiate(ProgressBarPrefab);
        //progressBar.transform.SetParent(Canvas.transform);
        //ProgressBar = progressBar.transform.GetChild(0).GetComponent<Image>();
        //TotalTime = parameters.TimeToTakeAction;
        //IsActioning = true;
        //MovementController.StopMovement();
    }
Exemple #2
0
 public void StartActionable(Actionable pActionable)
 {
     Actioner.AttemptAction(pActionable);
 }