예제 #1
0
    // Start is called before the first frame update
    void Start()
    {
        compassCont = GameObject.Find("Compass").GetComponent <CompassController>();

        prisms = new GameObject[] { };
        //prisms = GameObject.FindGameObjectsWithTag("Prism");
        //Debug.Log(prisms.Length);

        mouseProj = target.GetComponent <MouseProjection>();
    }
예제 #2
0
    void Start()
    {
        playerId = LevelManage.currentPlayerId;

        GameObject mainCamera = Instantiate <GameObject>(mainCameraPrefab, gameObject.transform);

        mainCamera.tag = "MainCamera";

        compassControl = new CompassController();
        touchControl   = new TouchController();

        networkingManage = GameObject.Find("NetworkManage").GetComponent <SocketIONetworking>();
    }
예제 #3
0
 private void Awake()
 {
     buttonComponent.onClick.AddListener(ClickHandler);
     compassController = GameObject.Find("Compass").GetComponent <CompassController>();
 }