Exemple #1
0
    // Use this for initialization
    void Start()
    {
        Player.Add(GameObject.FindGameObjectWithTag("CubeeRed"));
        Player.Add(GameObject.FindGameObjectWithTag("MajorCubee"));
        Player.Add(GameObject.FindGameObjectWithTag("MonoCubee"));

        PlayerTr.Add(transform.Find("CubeeRed").GetComponent <Text>());
        PlayerTr.Add(transform.Find("MajorCubee").GetComponent <Text>());
        PlayerTr.Add(transform.Find("MonoCubee").GetComponent <Text>());

        CubeeRed   = CubeeRedPrefab.GetComponent <Player>();
        MayorCubee = MajorCubeePrefab.GetComponent <Player>();
        MonoCubee  = MonoCubeePrefab.GetComponent <Player>();
        SpeedTr    = transform.Find("Cadre").Find("Speed").GetComponent <Text>();
        HPTr       = transform.Find("Cadre").Find("HP").GetComponent <Text>();
        GeneralTr  = transform.Find("Cadre").Find("General").GetComponent <Text>();
        SetDatainText(CubeeRed);

        controlText      = transform.Find("Control").GetComponent <Text>();
        controlText.text = "Control : " + controlActualy.ToString();
    }
Exemple #2
0
 public void SetManette()
 {
     controlActualy   = GameMgr.GameControl.Manette;
     controlText.text = "Control : " + controlActualy.ToString();
 }
Exemple #3
0
 public void SetClavier()
 {
     controlActualy   = GameMgr.GameControl.Clavier;
     controlText.text = "Control : " + controlActualy.ToString();
 }