void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Ctrl_PC>(); smallStageMenu_Setting = GameObject.FindGameObjectWithTag("SmallStageMenu_Setting").GetComponent <SmallStageMenu_Setting>(); mainFood_Setting = GameObject.FindGameObjectWithTag("MainFood_Setting").GetComponent <MainFood_Setting>(); if (player.mainStage == false) { text.text = CountModule(smallStageMenu_Setting.GetComponentInChildren <SmallStageMenu>().damage); } else { text.text = CountModule(mainFood_Setting.GetComponentInChildren <MainFood>().damage); } animationNumber = Random.Range(1, 3); if (animationNumber == 1) { this.GetComponent <Animator>().Rebind(); this.GetComponent <Animator>().Play("Attack1"); } if (animationNumber == 2) { this.GetComponent <Animator>().Rebind(); this.GetComponent <Animator>().Play("Attack2"); } Destroy(this.gameObject, 0.7f); }
// Use this for initialization void Start() { mainFood_Setting = GameObject.FindGameObjectWithTag("MainFood_Setting").GetComponent <MainFood_Setting>(); smallStageMenu_Setting = GameObject.FindGameObjectWithTag("SmallStageMenu_Setting").GetComponent <SmallStageMenu_Setting>(); player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Ctrl_PC>(); damegeTextManager = GameObject.FindGameObjectWithTag("DamageText").GetComponent <DamageTextManager>(); }
void Start() { pc = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Ctrl_PC>(); combo_Text.text = pc.combo_Count.ToString() + " Combo"; combo_Gaze.fillAmount = pc.superComboMode_Count / pc.maxCombo; superModeGaze.fillAmount = pc.superFiverMode / pc.maxSuperFiverMode; }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Ctrl_PC>(); LevelUpPoint = (player.level * player.level) * 30; GoldText.text = CountModule(LevelUpPoint); playerLevel.text = "Level " + player.level.ToString(); playerDamage.text = CountModuleDamege(player.power); }
// public SmallFood_Food_Menu smallFood_Food_Menu; // Use this for initialization void Start() { foodCount = smallFood_Index.Length; smallfood_Postion = GameObject.FindGameObjectWithTag("SmallFood_Position").GetComponent <SmallFood_Position>(); FoodSetting(); player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Ctrl_PC>(); player.DishPoint(); }
// Use this for initialization void Start() { mainSpoonAnimation = GameObject.FindGameObjectWithTag("MainSpoon").GetComponent <MainSpoonAnimation>(); player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Ctrl_PC>(); LevelUpPoint = (mainSpoonAnimation.level * mainSpoonAnimation.level) * 30; GoldText.text = LevelUpPoint.ToString(); mainSpoonLevel.text = "Level " + mainSpoonAnimation.level.ToString(); mainSpoonDamage.text = mainSpoonAnimation.power.ToString("N1"); }
int stageindex = 0; // 해당스테이지의 메뉴값(1~10스테이지의 메뉴 , 11~20스테이지의 메뉴) // Use this for initialization void Start() { mainFood_Collection = GameObject.FindGameObjectWithTag("MainFood_Collection").GetComponent <MainFood_Collection>(); player_Ctrl_PC = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Ctrl_PC>(); smallStageMenu_Setting = GameObject.FindGameObjectWithTag("SmallStageMenu_Setting").GetComponent <SmallStageMenu_Setting>(); foodrandomIndexMax = mainFood_Collection.mainFood_Collection.Length; //Debug.Log("랜덤인덱스 = " + mainFood_Collection.mainFood_Collection.Length); //StartMainMenuSetting(); }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Ctrl_PC>(); mainFood_Setting = GameObject.FindGameObjectWithTag("MainFood_Setting").GetComponent <MainFood_Setting>(); smallStageMenu_Setting = GameObject.FindGameObjectWithTag("SmallStageMenu_Setting").GetComponent <SmallStageMenu_Setting>(); stageManager = GameObject.FindGameObjectWithTag("Stage").GetComponent <StageManager>(); damageText = GameObject.FindGameObjectWithTag("DamageText").GetComponent <DamageTextManager>(); maxHP = stageManager.mainStageHp; currentHp = stageManager.mainStageHp; }
void Start() { if (img == null) { img = gameObject.GetComponent <Image>(); } if (btn == null) { btn = gameObject.GetComponent <Button>(); } pc = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Ctrl_PC>(); stt = GameObject.FindGameObjectWithTag("STI").GetComponent <SustainmentTime>(); }
void Start() { if (img == null) { img = gameObject.GetComponent <Image>(); } if (btn == null) { btn = gameObject.GetComponent <UnityEngine.UI.Button>(); } pc = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Ctrl_PC>(); smallStageMenu_Setting = GameObject.FindGameObjectWithTag("SmallStageMenu_Setting").GetComponent <SmallStageMenu_Setting>(); }
void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Ctrl_PC>(); smallStageMenu_Setting = GameObject.FindGameObjectWithTag("SmallStageMenu_Setting").GetComponent <SmallStageMenu_Setting>(); mainFood_Setting = GameObject.FindGameObjectWithTag("MainFood_Setting").GetComponent <MainFood_Setting>(); }
// Use this for initialization void Start() { pc = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Ctrl_PC>(); }
// Use this for initialization void Start() { pc = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Ctrl_PC>(); skill3 = GameObject.FindGameObjectWithTag("Skill3").GetComponent <Skill3Button>(); }