public static BattleShutter Instantiate(BattleShutter prefab, Transform parent, int nPanelDepth)
        {
            BattleShutter battleShutter = UnityEngine.Object.Instantiate(prefab);

            battleShutter.transform.parent        = parent;
            battleShutter.transform.localScale    = Vector3.one;
            battleShutter.transform.localPosition = Vector3.zero;
            battleShutter._uiPanel.depth          = nPanelDepth;
            return(battleShutter);
        }
Exemple #2
0
        public static BattleShutter Instantiate(BattleShutter prefab, Transform parent, int nPanelDepth)
        {
            BattleShutter battleShutter = Object.Instantiate <BattleShutter>(prefab);

            battleShutter.get_transform().set_parent(parent);
            battleShutter.get_transform().set_localScale(Vector3.get_one());
            battleShutter.get_transform().set_localPosition(Vector3.get_zero());
            battleShutter._uiPanel.depth = nPanelDepth;
            return(battleShutter);
        }
        public static IEnumerator Instantiate(UniRx.IObserver <BattleShutter> observer, BattleShutter prefab, Transform parent, int nPanelDepth)
        {
            BattleShutter obj = UnityEngine.Object.Instantiate(prefab);

            obj.transform.parent        = parent;
            obj.transform.localScale    = Vector3.one;
            obj.transform.localPosition = Vector3.zero;
            yield return(null);

            observer.OnNext(obj);
            observer.OnCompleted();
        }
Exemple #4
0
 public static IEnumerator Instantiate(IObserver <BattleShutter> observer, BattleShutter prefab, Transform parent, int nPanelDepth)
 {
     BattleShutter.< Instantiate > c__IteratorCE <Instantiate> c__IteratorCE = new BattleShutter.< Instantiate > c__IteratorCE();