public IEnumerator _init() { _explosionTime = 0f; _isEx = false; _isMiss = false; _isProtectE = false; _fBattleship = BattleTaskManager.GetBattleShips().dicFriendBattleShips; _eBattleship = BattleTaskManager.GetBattleShips().dicEnemyBattleShips; _camAerial = BattleTaskManager.GetBattleCameras().friendFieldCamera; _camAerial.ReqViewMode(CameraActor.ViewMode.NotViewModeCtrl); if (_mainObj == null) { _mainObj = base.transform.FindChild("Aircraft").gameObject; } if ((UnityEngine.Object)_anime == null) { _anime = ((Component)base.transform).GetComponent <Animation>(); } _aircraftObj = new GameObject[3]; for (int i = 0; i < 3; i++) { _aircraftObj[i] = _mainObj.transform.FindChild("Aircraft" + (3 - i)).gameObject; } BattleCutInCamera cutInCamera = BattleTaskManager.GetBattleCameras().cutInCamera; if (_rescueCutIn == null) { _rescueCutIn = GetComponent <ProdAerialRescueCutIn>(); } _rescueCutIn._init(); yield return(null); }
public static ProdAerialRescueCutIn Instantiate(ProdAerialRescueCutIn prefab, Transform parent) { ProdAerialRescueCutIn prodAerialRescueCutIn = Object.Instantiate <ProdAerialRescueCutIn>(prefab); prodAerialRescueCutIn.get_transform().set_parent(parent); prodAerialRescueCutIn.get_transform().set_localPosition(Vector3.get_zero()); prodAerialRescueCutIn.get_transform().set_localScale(Vector3.get_one()); prodAerialRescueCutIn._init(); return(prodAerialRescueCutIn); }
public static ProdAerialRescueCutIn Instantiate(ProdAerialRescueCutIn prefab, Transform parent) { ProdAerialRescueCutIn prodAerialRescueCutIn = UnityEngine.Object.Instantiate(prefab); prodAerialRescueCutIn.transform.parent = parent; prodAerialRescueCutIn.transform.localPosition = Vector3.zero; prodAerialRescueCutIn.transform.localScale = Vector3.one; prodAerialRescueCutIn._init(); return(prodAerialRescueCutIn); }
private bool _init() { _isEx = false; _isAttack = false; _isProtect = false; _explosionTime = 0f; _eHpPos = null; _defenders = _clsShelling.GetDefenders(is_friend: false); _fieldCam = BattleTaskManager.GetBattleCameras().friendFieldCamera; _fieldCam.ReqViewMode(CameraActor.ViewMode.NotViewModeCtrl); _rescueCutIn = base.transform.SafeGetComponent <ProdAerialRescueCutIn>(); _rescueCutIn._init(); return(true); }
public void Initialize(ShienModel_Rai model, PSTorpedoWake torpedoWake) { _fTime = 0f; stateType = StateType.None; _clsTorpedo = model; _isAttackE = false; _camFriend = BattleTaskManager.GetBattleCameras().friendFieldCamera; BattleShips battleShips = BattleTaskManager.GetBattleShips(); battleShips.SetBollboardTarget(isFriend: false, _camFriend.transform); _torpedoParticle = torpedoWake; BattleTaskManager.GetTaskTorpedoSalvo(); Transform prefabProdTorpedoResucueCutIn = BattleTaskManager.GetPrefabFile().prefabProdTorpedoResucueCutIn; _rescueCutIn = transform.SafeGetComponent<ProdAerialRescueCutIn>(); _rescueCutIn._init(); }