void Start() { monster = gameObject.GetComponent <Monster>(); search = gameObject.GetComponent <SearchFood>(); stats = gameObject.GetComponent <MonsterStats>(); fetch = gameObject.GetComponent <Fetch>(); boxing = gameObject.GetComponent <Boxing>(); audioSource = gameObject.GetComponent <AudioSource>(); fetch.stats = stats; fetch.state = this; fetch.monster = monster; search.monster = monster; search.fetch = fetch; search.state = this; search.player = GameObject.Find("Player").GetComponent <Valve.VR.InteractionSystem.Player>(); stats.state = this; stats.monster = monster; boxing.monster = monster; boxing.player = monster.mainPlayer; boxing.obstacleMask = monster.ObstacleMask; boxing.stats = stats; boxing.state = this; stats.DisplayStats(); Vector3 temphPos = hatchObject.transform.position; temphPos.y = monster.GroundLevel; gameObject.transform.position = temphPos; EventManager.instance.Fetching += OnFetching; EventManager.instance.Pointing += OnPointing; }