Ejemplo n.º 1
0
    //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>();
    }
Ejemplo n.º 2
0
 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>();
 }
Ejemplo n.º 3
0
    // 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>();
    }