コード例 #1
0
 // Gets called if player enters the infraredpanel radius. Only changes comfort if the infraredpanel is on
 private void OnTriggerEnter(Collider other)
 {
     inWarmthRadius = true;
     if (infraredController.isOn() == true)
     {
         gettingWarm();
     }
 }
コード例 #2
0
 public bool CheckifInfraredAreOn(InfraredController infraredController)
 {
     if (infraredController.isOn() == true)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }