void Start() { bombButton = GameObject.Find("BombButton"); skillButton = GameObject.Find("SkillButton"); gameManager = GameObject.Find("GameManager"); bulletLevelGage = GameObject.Find("BulletLevelGage"); fuelImageTF = GameObject.Find("FuelImageTF"); //itemGetScript = gameManager.GetComponent<ObjectPoolScript>().itemGetScript; if (gameManager.transform.FindChild("PC/Flight").gameObject) { pcFlight = gameManager.transform.FindChild("PC/Flight").gameObject; } pc = gameManager.transform.FindChild("PC").gameObject; addScoreLabeluiObjectPool = GameObject.Find("AddScoreLabel").GetComponent <uiObjectPool>(); runeObj = GameObject.Find("GameManager").transform.FindChild("Rune").gameObject; soundUiControlScript = gameManager.GetComponent <SoundUiControlScript>(); bulletControlScript = gameManager.GetComponent <BulletControlScript>(); instanceMissionScript = gameManager.GetComponent <InstanceMissionScript>(); bombSkillGageScript = gameManager.GetComponent <BombSkillGageScript>(); bombButton01UIFilledSprite = GameObject.Find("BombButton01").GetComponent <UIFilledSprite>(); magnetScript = gameManager.GetComponent <MagnetScript>(); runeAlphaAni = runeObj.GetComponent <RuneAlphaAni>(); scoreCoinCount = gameManager.GetComponent <ScoreCoinCount>(); playerMoveScript = gameManager.transform.FindChild("PC").gameObject.GetComponent <PlayerMoveScript>(); characterSpeakManager = GameObject.Find("CharacterSpeakManager").GetComponent <CharacterSpeakManagerScript>(); addedChSpeakScript = GameObject.Find("CharacterSpeakManager").GetComponent <AddedChSpeakScript>(); }
// Use this for initialization void Start() { fuelSlider = GameObject.Find("FuelSlider"); flight = GameObject.Find("PC/Flight"); gameManager = GameObject.Find("GameManager"); activate = gameManager.GetComponent <ActivateScript>(); // portalActivation = parentPortal.GetComponent<PortalActivation>(); addScoreLabelUiObjectPool = GameObject.Find("AddScoreLabel").GetComponent <uiObjectPool>(); soundUiControlScript = gameManager.GetComponent <SoundUiControlScript>(); scoreCoinCount = gameManager.GetComponent <ScoreCoinCount>(); instanceMission = gameManager.GetComponent <InstanceMissionScript>(); bombSkillGageScript = gameManager.GetComponent <BombSkillGageScript>(); if (ufoType == ValueDeliverScript.targetUfoType && ufoType + ValueDeliverScript.targetUfoType >= 2) //2보다 크다고 설정한것은 혹시라도 1보다 작은 짝수가 나왔을때(값이 잘못 입력되었을때)를 무시하기 위해서 { switch (ufoType + ValueDeliverScript.targetUfoType) { case 2: ufoTypeDamage = 2f; break; case 4: ufoTypeDamage = 2f; break; case 6: ufoTypeDamage = 2f; break; case 8: ufoTypeDamage = 2f; break; } } fAttackPo = ValueDeliverScript.flightAttackPower; incrBoAttackPer = ValueDeliverScript.increaseBombAttackPercentInGame; AttackPoPer = ValueDeliverScript.AttackPowerPercentTemp; addAttackAbil = ValueDeliverScript.addAttackAbility; itemMagEf = ValueDeliverScript.itemMagnetEffect; skin02_04Effect = ValueDeliverScript.skin02_04Effect; }
void Awake() { bsGageScript = GameObject.Find("GameManager").GetComponent <BombSkillGageScript>(); }