Exemplo n.º 1
0
 private void Start()
 {
     torchManager = GameObject.FindGameObjectWithTag("TorchManager").GetComponent <TorchManager>();
     isLit        = false;
     playerNearby = false;
     lightingTime = 2f;
 }
Exemplo n.º 2
0
 private void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
     }
 }