Пример #1
0
 private void OnTriggerEnter(Collider other_)
 {
     switch (other_.transform.tag)
     {
     case "Box":
         actionCharacter.HeadHeightBox();
         break;
     }
 }
Пример #2
0
    private void OnTriggerStay(Collider other_)
    {
        //Debug.Log(other_.transform.tag + " HeadHeight touch");

        switch (other_.transform.tag)
        {
        case "Box":
            actionCharacter.HeadHeightBox();
            break;
        }
    }