private void Awake() { self = this; group.gameObject.SetActive(false); structureGhost.SetActive(false); beltExitButton.gameObject.SetActive(false); }
// Start is called before the first frame update void Start() { player = this.gameObject.transform; UIController = FindObjectOfType <UIControll>(); Health = StartPointHealt; UpdateStats(); // this.gameObject.transform.position = startPoint.transform.position; }
void Start() { socket = GetComponent <SocketIOComponent>(); uiControll = GameObject.Find("UIControll").GetComponent <UIControll>(); socket.On("Connection To Server", OnConnected); socket.On("login success", OnLogin); socket.On("other player login", OnOtherLogin); socket.On("logout success", OnLogout); socket.On("other player logout", OnOtherLogout); socket.On("checkReady", checkReady); socket.On("CheckAnss", CheckAns); socket.On("GameEND", GameEND); socket.On("ShowWinner", ShowWinner); }
// Use this for initialization void Start() { rotDirec = 1; rb = GetComponent <Rigidbody> (); player = GameObject.FindGameObjectWithTag("Player"); refUpFaceLeft = GameObject.Find("RefUpFaceLeft").transform.localRotation; refList.Add(refUpFaceLeft); refUpFaceRight = GameObject.Find("RefUpFaceRight").transform.localRotation; refDownFaceRight = GameObject.Find("RefDownFaceRight").transform.localRotation; refList.Add(refDownFaceRight); refDownFaceLeft = GameObject.Find("RefDownFaceLeft").transform.localRotation; refLeftFaceDown = GameObject.Find("RefLeftFaceDown").transform.localRotation; refList.Add(refLeftFaceDown); refLeftFaceUp = GameObject.Find("RefLeftFaceUp").transform.localRotation; refRightFaceUp = GameObject.Find("RefRightFaceUp").transform.localRotation; refList.Add(refRightFaceUp); refRightFaceDown = GameObject.Find("RefRightFaceDown").transform.localRotation; grav = new Vector2(0, -35); life = GameObject.Find("GameController").GetComponent <LifeControll> (); uiC = GameObject.Find("GameController").GetComponent <UIControll> (); gravHor = true; }
void Start() { _UI = GetComponent <UIControll>(); //XCodeSaveMArker.SaveMarkerToAlbum(); }
// Use this for initialization void Start() { playerlife = 10; uiC = GetComponent <UIControll> (); anim = player.GetComponentInChildren <Animator> (); }
void Start() { _UI = GetComponent<UIControll>(); //XCodeSaveMArker.SaveMarkerToAlbum(); }
void Start() { move = GetComponent <Move>(); uicontroll = GetComponent <UIControll>(); time = DELAY; }