public static int IntLayer(this Generics.Layers layer) { switch (layer) { case Generics.Layers.Default: return(0); case Generics.Layers.TransparentFX: return(1); case Generics.Layers.IgnoreRaycast: return(2); case Generics.Layers.Water: return(3); case Generics.Layers.UI: return(5); case Generics.Layers.Background: return(8); case Generics.Layers.UI2D: return(9); case Generics.Layers.UI3D: return(10); case Generics.Layers.Transition: return(11); case Generics.Layers.ShipGirl: return(12); case Generics.Layers.TopMost: return(13); case Generics.Layers.CutIn: return(14); case Generics.Layers.SaveData: return(15); case Generics.Layers.Effects: return(16); case Generics.Layers.FocusDim: return(17); case Generics.Layers.UnRefrectEffects: return(18); case Generics.Layers.SplitWater: return(19); default: return(0); } }
public static void LayerCollectiveSetting(Transform trans, Generics.Layers layer) { trans.gameObject.layer = layer.IntLayer(); GameObject[] children = trans.gameObject.GetChildren(includeInactive: true); foreach (GameObject gameObject in children) { gameObject.layer = layer.IntLayer(); } }
public static void LayerCollectiveSetting(Transform trans, Generics.Layers layer) { trans.get_gameObject().set_layer(layer.IntLayer()); GameObject[] children = trans.get_gameObject().GetChildren(true); for (int i = 0; i < children.Length; i++) { GameObject gameObject = children[i]; gameObject.set_layer(layer.IntLayer()); } }
public void SetLayer(Generics.Layers iLayer) { _dicFriendBattleShips.ForEach(delegate(KeyValuePair <int, UIBattleShip> x) { if (x.Value != null && x.Value.layer != iLayer) { x.Value.layer = iLayer; } }); _dicEnemyBattleShips.ForEach(delegate(KeyValuePair <int, UIBattleShip> x) { if (x.Value != null && x.Value.layer != iLayer) { x.Value.layer = iLayer; } }); }
public virtual void SameMask(Generics.Layers layer) { _camCamera.cullingMask = (_camUICamera.eventReceiverMask = (int)layer); }
public virtual void CullingMask(Generics.Layers layer) { _camCamera.cullingMask = (int)layer; }
public virtual void EventMask(Generics.Layers layer) { _camUICamera.eventReceiverMask = (int)layer; }
public static int IntLayer(this Generics.Layers layer) { switch (layer) { case Generics.Layers.Default: return(0); case Generics.Layers.TransparentFX: return(1); case Generics.Layers.Default | Generics.Layers.TransparentFX: IL_1A: if (layer == Generics.Layers.Water) { return(3); } if (layer == Generics.Layers.UI) { return(5); } if (layer == Generics.Layers.Background) { return(8); } if (layer == Generics.Layers.UI2D) { return(9); } if (layer == Generics.Layers.UI3D) { return(10); } if (layer == Generics.Layers.Transition) { return(11); } if (layer == Generics.Layers.ShipGirl) { return(12); } if (layer == Generics.Layers.TopMost) { return(13); } if (layer == Generics.Layers.CutIn) { return(14); } if (layer == Generics.Layers.SaveData) { return(15); } if (layer == Generics.Layers.Effects) { return(16); } if (layer == Generics.Layers.FocusDim) { return(17); } if (layer == Generics.Layers.UnRefrectEffects) { return(18); } if (layer != Generics.Layers.SplitWater) { return(0); } return(19); case Generics.Layers.IgnoreRaycast: return(2); } goto IL_1A; }
public virtual void CullingMask(Generics.Layers layer) { this._camCamera.set_cullingMask((int)layer); }
private void Reset() { cullingMask = (Generics.Layers.TransparentFX | Generics.Layers.Water | Generics.Layers.Background | Generics.Layers.ShipGirl | Generics.Layers.Effects); }