// Start is called before the first frame update void Start() { //Not sure where the best place to put this is (initiating background music) FindObjectOfType <AudioManager>().Play("BGMusic1"); FindObjectOfType <AudioManager>().Play("BirdCry"); srTransition = GetComponent <SpiritRealmTransition>(); //Stop game from sleeping, because gyroscope is not a registered input. Screen.sleepTimeout = SleepTimeout.NeverSleep; originalScale = ringForEffect.transform.localScale; srTransition.SetDefault(); }
private void Awake() { srTransition = player.GetComponent <SpiritRealmTransition>(); }