// 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>(); }
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>(); }
private void Awake() { buttonComponent.onClick.AddListener(ClickHandler); compassController = GameObject.Find("Compass").GetComponent <CompassController>(); }