Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     playerMask = LayerMask.GetMask("Player");
     layerNum   = LayerMask.NameToLayer("Player");
     buildObject.SetActive(false);
     overlayScript = overlay.GetComponent <WorldOverlayScript>();
     container     = transform.parent.gameObject.GetComponent <PadContainer>();
     padLight      = transform.GetComponentInChildren <Light>();
     if (isSwitch)
     {
         bot.SetActive(false);
     }
     if (padLight != null)
     {
         padLight.enabled = false;
     }
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     bots          = 0;
     overlayScript = overlay.GetComponent <WorldOverlayScript>();
 }