//void Awake() void Awake() { damegeTextManager = GameObject.FindGameObjectWithTag("DamageText").GetComponent <DamageTextManager>(); smallFood_Setting = GameObject.FindGameObjectWithTag("SmallMenu_Setting").GetComponent <SmallFood_Setting>(); smallStageMenu_Setting = GameObject.FindGameObjectWithTag("SmallStageMenu_Setting").GetComponent <SmallStageMenu_Setting>(); mainFood_Setting = GameObject.FindGameObjectWithTag("MainFood_Setting").GetComponent <MainFood_Setting>(); combo_system = GameObject.FindGameObjectWithTag("Combo_System").GetComponent <Combo_System>(); stage = GameObject.FindGameObjectWithTag("Stage").GetComponent <StageManager>(); layerMask = LayerMask.GetMask(DishLayer, SkillLayer); startSmallFoodAnimation = GameObject.FindGameObjectWithTag("StartSmallFoodPosition").GetComponent <StartSmallFoodAnimation>(); mainSpoonAnimation = GameObject.FindGameObjectWithTag("MainSpoon").GetComponent <MainSpoonAnimation>(); mainChopsticAnimation = GameObject.FindGameObjectWithTag("MainChopstic").GetComponent <MainChopsticAnimation>(); SmallSpoonAnimation = GameObject.FindGameObjectWithTag("SmallSpoonAnimation").GetComponent <SmallSpoonAnimation>(); mainForksAnimation = GameObject.FindGameObjectWithTag("MainForks").GetComponent <MainForksAnimation>(); mainKnifeAnimation = GameObject.FindGameObjectWithTag("MainKnife").GetComponent <MainKnifeAnimation>(); blueDishGather = GameObject.FindGameObjectWithTag("Blue_Dish_Gather").GetComponent <BlueDishGather>(); yellowDishGather = GameObject.FindGameObjectWithTag("Yellow_Dish_Gather").GetComponent <YellowDishGather>(); greenDishGather = GameObject.FindGameObjectWithTag("Green_Dish_Gather").GetComponent <GreenDishGather>(); redDishGather = GameObject.FindGameObjectWithTag("Red_Dish_Gather").GetComponent <RedDishGather>(); playerAnimation = GameObject.FindGameObjectWithTag("PlayerRender").GetComponent <PlayerAnimation>(); smallChopsticAnimation = GameObject.FindGameObjectWithTag("SmallChopstic").GetComponent <SmallChopsticAnimation>(); smallForksAnimation = GameObject.FindGameObjectWithTag("SmallForks").GetComponent <SmallForksAnimation>(); smallKnifeAnimation = GameObject.FindGameObjectWithTag("SmallKnife").GetComponent <SmallKnifeAnimation>(); mainCamara = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <MainCamara>(); stt = GameObject.FindGameObjectWithTag("STI").GetComponent <SustainmentTime>(); }
// Use this for initialization void Start() { mainSpoon = GameObject.FindGameObjectWithTag("MainSpoon").GetComponent <MainSpoonAnimation>(); mainChopstic = GameObject.FindGameObjectWithTag("MainChopstic").GetComponent <MainChopsticAnimation>(); mainKnife = GameObject.FindGameObjectWithTag("MainKnife").GetComponent <MainKnifeAnimation>(); mainForks = GameObject.FindGameObjectWithTag("MainForks").GetComponent <MainForksAnimation>(); skill5 = GameObject.Find("Skill5_Button").GetComponent <Skill5_Button>(); }
// Use this for initialization void Start() { if (img == null) { img = gameObject.GetComponent <Image>(); } if (btn == null) { btn = gameObject.GetComponent <Button>(); } mainSpoon = GameObject.FindGameObjectWithTag("MainSpoon").GetComponent <MainSpoonAnimation>(); mainChopstic = GameObject.FindGameObjectWithTag("MainChopstic").GetComponent <MainChopsticAnimation>(); mainKnife = GameObject.FindGameObjectWithTag("MainKnife").GetComponent <MainKnifeAnimation>(); mainForks = GameObject.FindGameObjectWithTag("MainForks").GetComponent <MainForksAnimation>(); stt = GameObject.FindGameObjectWithTag("STI").GetComponent <SustainmentTime>(); }