예제 #1
0
        public static UICompassManager Instantiate(UICompassManager prefab, Transform parent, CompassType iCompassType, Transform ship, Transform nextCell)
        {
            UICompassManager uICompassManager = Object.Instantiate <UICompassManager>(prefab);

            uICompassManager.get_transform().set_parent(parent);
            uICompassManager.get_transform().localPositionZero();
            uICompassManager.get_transform().localScaleOne();
            uICompassManager.Init(iCompassType, ship, nextCell);
            return(uICompassManager);
        }
예제 #2
0
        public static UICompassManager Instantiate(UICompassManager prefab, Transform parent, CompassType iCompassType, Transform ship, Transform nextCell)
        {
            UICompassManager uICompassManager = UnityEngine.Object.Instantiate(prefab);

            uICompassManager.transform.parent = parent;
            uICompassManager.transform.localPositionZero();
            uICompassManager.transform.localScaleOne();
            uICompassManager.Init(iCompassType, ship, nextCell);
            return(uICompassManager);
        }
예제 #3
0
 private IEnumerator ChkCompass(MapManager manager, UIMapManager uiManager, UISortieShip ship)
 {
     if (manager.hasCompass())
     {
         SortieMapTaskManager.GetUIAreaMapFrame().SetMessage("どこに進む?");
         UICompassManager uicm   = UICompassManager.Instantiate(((Component)SortieMapTaskManager.GetPrefabFile().prefabUICompassManager).GetComponent <UICompassManager>(), SortieMapTaskManager.GetSharedPlace(), SortieBattleTaskManager.GetMapManager().CompassId, ship.transform, uiManager.nextCell.transform);
         bool             isWait = false;
         uicm.Play(delegate
         {
             isWait = true;
         });
         while (!isWait)
         {
             yield return(new WaitForEndOfFrame());
         }
         Mem.DelComponentSafe(ref uicm);
     }
 }