Пример #1
0
    void OnTriggerEnter(Collider col)
    {
        LevController levC = MainObjectSingleton.shared(MainObjectType.Player).GetComponent <LevController> ();

        if (col.CompareTag("Player") && levC.GetComponentInChildren <TorchUsable>() == null)
        {
            levC.lookBack();
            StartCoroutine(StopLookback(levC));
        }
    }
Пример #2
0
    void OnTriggerEnter(Collider other)
    {
        LevController levC = MainObjectSingleton.shared(MainObjectType.Player).GetComponent <LevController> ();

        if (other.CompareTag("Player") && levC.GetComponentInChildren <TorchUsable>() != null)
        {
            levC.lookBack();
            StartCoroutine(StopLookback(levC));
//			startY = plank.transform.position.y;
//			CreateItween ();
        }
    }