Esempio n. 1
0
    public void Init()
    {
        Debug.Log("BldrCtrlr.Init");
        GUICanvas = (GameObject)Instantiate(Resources.Load("Prefabs/BuilderGUICanvas"), new Vector3(354f, 183f, 0), Quaternion.identity);



#if UNITY_ANDROID || UNITY_IOS || UNITY_IPHONE
        InputManager = new AndroidDPadInput();
#endif
#if UNITY_EDITOR
        InputManager = new KeyboardInput();
#endif
#if UNITY_STANDALONE_WIN
        InputManager = InputFactory.ChooseInputManager();
#endif
    }
Esempio n. 2
0
    public override void Init()
    {
        Gps = new GPS(this.gameObject);


        /*
         * //For testing
         * UnityEngine.Object objPacjk = Resources.Load("Prefabs/PacejkaDisplay");
         * GameObject goPacjk = GameObject.Instantiate(objPacjk, Vector3.zero, Quaternion.identity, trCanvas) as GameObject;
         * PacejkaDisplay Pacjk = goPacjk.GetComponent<PacejkaDisplay>();
         * Pacjk.WC = WCRL;
         * goPacjk = GameObject.Instantiate(objPacjk, Vector3.up * 150, Quaternion.identity, trCanvas) as GameObject;
         * Pacjk = goPacjk.GetComponent<PacejkaDisplay>();
         * Pacjk.WC = WCFL;
         */

        InputManager = InputFactory.ChooseInputManager();
    }