void Start() { if (gameObject.layer == LayerMask.NameToLayer("Background")) { state = 1; } originalSprite = GetComponent <SpriteRenderer>().sprite; lt = GetComponentInParent <LevelTheatre>(); }
// Use this for initialization void Awake() { source = GetComponent <AudioSource>(); lt = GetComponentInParent <LevelTheatre>(); }
void Start() { lt = GetComponentInParent <LevelTheatre>(); }