Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        camera       = GameObject.Find("Camera");
        blocks       = GameObject.Find("Blocks");
        modeDetector = GameObject.Find("ModeDetector").GetComponent <ModeDetector>();

        DisablePlayer();

        mb = gameObject.GetComponent <ModifyBlock>();
    }
Exemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        modifyBlock    = GameObject.Find("Manager").gameObject.GetComponent <ModifyBlock>();
        prop1input     = GameObject.Find("BlockProperties").gameObject.transform.Find("Prop1Input").gameObject;
        prop1inputText = prop1input.transform.Find("Text").gameObject.GetComponent <Text>();

        Assert.IsNotNull(modifyBlock);
        Assert.IsNotNull(prop1input);
        Assert.IsNotNull(prop1inputText);
    }