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