Beispiel #1
0
    private void OnControllerColliderHit(ControllerColliderHit hit)
    {
        GateController gate = hit.gameObject.GetComponentInParent <GateController>();

        if (gate != null)
        {
            gate.StopFlipping();
        }
        //DoorController door = hit.gameObject.GetComponentInParent<DoorController>();
        //if (door != null)
        //    door.Open();
    }