Exemplo n.º 1
0
    //public GameObject accept;
    //public GameObject reject;
    //public GameObject 3dtext;
    // Use this for initialization
    void Start()
    {
        anim = GetComponent <Animator>();

        animatdImageObj.GetComponent <Image>().enabled  = false;
        animatdImageObj1.GetComponent <Image>().enabled = false;



        //Initialize button
        btnNext.onClick.AddListener(BuildMachine);
        btnReset.onClick.AddListener(ResetMachine);
        btnReset.interactable = false;
        //accept.SetActive(false);
        //reject.SetActive(false);
        success1 = false;
        error    = false;

        //distance cube 31
        positionCube   = -156f;
        positionText   = -301.5f;
        positionSphere = -299f;
        actualPosition = 3;
        counter        = 0;

        //Initialize
        InitializeValuesTuring();
        mr   = new MachineRules();
        Keys = false;

        //camera view

        offset = transform.position - player.transform.position;
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        //Inicializo Botones
        btnNext.onClick.AddListener(BuildMachine);
        btnReset.onClick.AddListener(ResetMachine);
        btnReset.interactable = false;

        //31 distancia cubo
        positionCube   = -49f;
        positionText   = -94.5f;
        positionSphere = -99.8f;
        actualPosition = 3;
        counter        = 0;

        //Initialize
        InitializeValuesTuring();
        mr   = new MachineRules();
        Keys = false;

        //Vista camara
        offset = transform.position - player.transform.position;
    }