示例#1
0
 void OnTriggerEnter(Collider collider)
 {
     Debug.Log("Trigger" + playerEnergy);
     Altar a = collider.gameObject.GetComponent<Altar>();
     if (a != null)
     {
         altar = a;
         altar.TurnIn(playerEnergy);
     }
 }