Пример #1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Player"))
     {
         AutomatedPlayerMovement autoPlayerMove = other.GetComponent <AutomatedPlayerMovement>();
         autoPlayerMove.Jump();
     }
 }
    void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("Player"))
        {
            AutomatedPlayerMovement autoPlayerMovement = other.GetComponent <AutomatedPlayerMovement>();
            TurnPlayerLeft(autoPlayerMovement);
            CorrectMoveDirection(autoPlayerMovement);
            autoPlayerMovement.Jump();

            this.gameObject.SetActive(false);
        }
    }
 void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Player"))
     {
         AutomatedPlayerMovement autoPlayerMove = other.GetComponent <AutomatedPlayerMovement>();
         //autoPlayerMove.TranslateTransform(Vector3.forward * 0.5f);
         autoPlayerMove.SetDirection(Vector3.right);
         autoPlayerMove.StartMoveForward();
         autoPlayerMove.TranslateTransform(Vector3.forward * 1f);
         autoPlayerMove.Jump();
     }
 }
 void BoostPlayerUp(AutomatedPlayerMovement autoPlayerMove)
 {
     autoPlayerMove.Jump();
 }