Esempio n. 1
0
        public void PlayMailstrom(UISortieShip sortieShip, MapEventHappeningModel eventHappeningModel, Action onFinished)
        {
            ProdShipRipple component     = Util.Instantiate(SortieMapTaskManager.GetPrefabFile().prefabProdShipRipple.gameObject, base.transform.gameObject).GetComponent <ProdShipRipple>();
            ProdMailstrom  prodMailstrom = ProdMailstrom.Instantiate(((Component)SortieMapTaskManager.GetPrefabFile().prefabProdMaelstrom).GetComponent <ProdMailstrom>(), base.transform, eventHappeningModel);

            prodMailstrom.PlayMailstrom(sortieShip, component, onFinished);
        }
Esempio n. 2
0
        public static ProdMailstrom Instantiate(ProdMailstrom prefab, Transform parent, MapEventHappeningModel eventHappeningModel)
        {
            ProdMailstrom prodMailstrom = Object.Instantiate <ProdMailstrom>(prefab);

            prodMailstrom.get_transform().set_parent(parent);
            prodMailstrom.get_transform().localScaleOne();
            prodMailstrom.get_transform().localPositionZero();
            prodMailstrom.Init(eventHappeningModel);
            return(prodMailstrom);
        }
Esempio n. 3
0
        public static ProdMailstrom Instantiate(ProdMailstrom prefab, Transform parent, MapEventHappeningModel eventHappeningModel)
        {
            ProdMailstrom prodMailstrom = UnityEngine.Object.Instantiate(prefab);

            prodMailstrom.transform.parent = parent;
            prodMailstrom.transform.localScaleOne();
            prodMailstrom.transform.localPositionZero();
            prodMailstrom.Init(eventHappeningModel);
            return(prodMailstrom);
        }