Exemplo n.º 1
0
 public void Setup()
 {
     canvas = MonoBehaviour.Instantiate(Resources.Load <GameObject>("Prefabs/TugOfWarGame/Canvas"));
     rope   = canvas.transform.GetChild(0).gameObject;
     RH     = rope.GetComponent <RopeHandler>();
     BH     = canvas.transform.GetChild(2).gameObject.GetComponent <Button_Handler>();
     winner = canvas.transform.GetChild(4).gameObject;
     RF     = canvas.transform.GetChild(1).gameObject.GetComponent <RopeFinish>();
 }
    // Use this for initialization
    void Start()
    {
        Button_Handler = new Button_Handler();

    }