예제 #1
0
파일: Day.cs 프로젝트: Mathigoful/ZIMA
    // Start is called before the first frame update
    void Start()
    {
        timer       = GameObject.Find("GameManager").GetComponent <Timer>();
        choices     = GameObject.Find("GameManager").GetComponent <Mathieu_Choice>();
        turnes      = GameObject.Find("GameManager").GetComponent <Turns_Select>();
        _sl         = GameObject.Find("GameManager").GetComponent <Liste_Stalkers>();
        _ressources = GameObject.Find("GameManager").GetComponent <Gestion_Ressources>();

        _GetIt = GameObject.Find("GameManager").GetComponent <Stalkers_GetRessources>();

        _JCVD = GameObject.Find("GameManager").GetComponent <J_Choice_Result>();

        daypast.text = "Jour " + day;
    }
예제 #2
0
    // Start is called before the first frame update
    void Start()
    {
        buttonList                = new MyButtons[2];
        buttonList[1].image       = GameObject.Find("Left_Answer").GetComponent <Image>();
        buttonList[1].image.color = Color.white;
        buttonList[1].action      = LeftButtonAction;

        buttonList[0].image       = GameObject.Find("Right_Answer").GetComponent <Image>();
        buttonList[0].image.color = Color.white;
        buttonList[0].action      = RightButtonAction;

        dayz = GameObject.Find("GameManager").GetComponent <Day>();
        test = GameObject.Find("GameManager").GetComponent <J_Choice_Result>();

        Drain  = GameObject.Find("GameManager").GetComponent <J_Drains>();
        Andeck = GameObject.Find("GameManager").GetComponent <Deck2List>();

        MBar        = GameObject.Find("GameManager").GetComponent <Mat_Bar>();
        _ressources = GameObject.Find("GameManager").GetComponent <Gestion_Ressources>();
    }
예제 #3
0
 // Start is called before the first frame update
 void Start()
 {
     _dayValue  = GameObject.Find("GameManager").GetComponent <Day>();
     _disableMe = GameObject.Find("GameManager").GetComponent <J_Choice_Result>();
     _enableMe  = GameObject.Find("GameManager").GetComponent <Deck2List>();
 }