Example #1
0
 private void DetermineProjectileLayer()
 {
     projectileTag       = TeamHelper.LayerToProjectileTag(gameObject.layer);
     projectileLayerMask = LayerMask.NameToLayer(projectileTag);
     //Debug.Log("Determining layers.");
     //Debug.Log(gameObject.name);
     //Debug.Log("Player ship layer: " + gameObject.layer);
     //Debug.Log("Previous ship layer: " + previousObjLayer);
     //Debug.Log("Output layer: " + projectileLayerMask);
     this.previousObjLayer = gameObject.layer;
 }