Beispiel #1
0
    void Update()
    {
        if (!LevelManager.isGameOver && this.DetectPlayer())
        {
            FindObjectOfType <LevelManager>().LevelLost();

            if (parentEnemy != null)
            {
                parentEnemy.GameOver(true);
            }
        }
        if (this.DetectGrappleHand())
        {
            if (parentEnemy != null)
            {
                parentEnemy.Alert(player, true);
            }
        }
    }
Beispiel #2
0
 void Alert()
 {
     enemy.Alert(gameObject.transform, true);
 }