Example #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (Enemy.activeSelf == true)
     {
         getTimer     = SetTimer;
         getMoveSpeed = PlayerMovement.shadowWalkSpeedFactor;
         PlayerMovement.shadowWalkSpeedFactor = 0;
         PlayerMovement.EnableNightMode();
     }
     SupportCharacter.SetActive(true);
     Tree.SetActive(true);
     Enemy.SetActive(false);
 }
    private void OnTriggerEnter(Collider other)
    {
        if (Enemy.activeSelf == true)
        {
            getTimer = SetTimer;
            PlayerMovement.DisableControls();
            PlayerMovement.EnableNightMode();
            ActivateFade.Activate = true;
        }

        SupportCharacter.SetActive(true);
        Tree.SetActive(true);
        MoveEnemy.NightTriggered = true;
    }