Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        array     = GameObject.FindGameObjectsWithTag("Robot");
        Objective = array[0];
        Left      = GameObject.FindGameObjectsWithTag("ShowSwordLeft")[0];

        Destroy(Instantiate(mark, Left.transform.position, Left.transform.rotation) as GameObject, 1.0f);

        GameObject gameControllerObject = GameObject.FindGameObjectWithTag("GameControllerFight");

        if (gameControllerObject != null)
        {
            gameController = gameControllerObject.GetComponent <GameControllerFight>();
        }


        if (gameController == null)

        {
            Debug.Log("Cannot find GameController script");
        }
    }
    //public GameObject Camera_inv;


    //righthand(139.95,75.04,727.75)
    //lefthand(157.11,64.81,231.29)

    // Use this for initialization
    void Start()
    {
        //Camera_inv = GameObject.Find("Camera Panel");
        //Camera_inv.SetActive(false);
        if (PlaylistManager.pm == null || (PlaylistManager.pm != null && !PlaylistManager.pm.active))
        {
            Parameters.SetActive(true);
            MainPanel.SetActive(false);
        }


        gc = gameObject.GetComponent <GameControllerFight>();
        MainPanel.SetActive(false);
        PauseButton.SetActive(false);
        ResultPanel = GameObject.Find("results_canvas");
        results     = ResultPanel.GetComponent <PutDataResults>();
        ResultPanel.SetActive(false);
        Camera.transform.position = new Vector3(149f, 84.38f, 259.68f);
        clean              = true;
        InGame             = false;
        GameOverBool       = false;
        currentTime        = 0;
        currentRepetitions = 0;
    }