コード例 #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);
        }