SetBoundaryLayerExist() public static method

public static SetBoundaryLayerExist ( bool value ) : void
value bool
return void
Beispiel #1
0
 private void Start()
 {
     Moba_Camera_Boundaries.AddBoundary(this, this.type);
     if (LayerMask.NameToLayer(Moba_Camera_Boundaries.boundaryLayer) != -1)
     {
         base.gameObject.layer = LayerMask.NameToLayer(Moba_Camera_Boundaries.boundaryLayer);
     }
     else
     {
         Moba_Camera_Boundaries.SetBoundaryLayerExist(false);
         base.GetComponent <Collider>().isTrigger = true;
     }
 }
 // Use this for initialization
 void Start()
 {
     // Adds this boundary to the list of boundaries
     Moba_Camera_Boundaries.AddBoundary(this, type);
     if (LayerMask.NameToLayer(Moba_Camera_Boundaries.boundaryLayer) != -1)
     {
         this.gameObject.layer = LayerMask.NameToLayer(Moba_Camera_Boundaries.boundaryLayer);
     }
     else
     {
         Moba_Camera_Boundaries.SetBoundaryLayerExist(false);
         collider.isTrigger = true;
     }
 }