// Use this for initialization void Start() { m_start = GameObject.Find("StartUI"); m_game = GameObject.Find("GameUI"); m_end = GameObject.Find("EndUI"); scoreGUI = GameObject.Find("Score").GetComponent <GUIText> (); timeGUI = GameObject.Find("Time").GetComponent <GUIText> (); bgAudio = GameObject.Find("Main Camera").GetComponent <AudioSource> (); m_hand = GameObject.Find("Weapon").GetComponent <HandMove> (); m_feipan = GameObject.Find("FeiPanParent").GetComponent <FeiPan> (); ChangeGameState(GameState.START); }
// Use this for initialization void Start() { handMove = GetComponentInParent <HandMove>(); }