private new void Awake() { pod = GetComponentInParent <Pod>(); bed = pod.GetComponentInChildren <Bed>(); alarm = GetComponent <DresserAlarm>(); if (pod) { pod.DeclareThis(Label, this); } base.Awake(); }
private new void Awake() { //set the content content = new Sheets(); playerController = PlayerController.Instance; pod = GetComponentInParent <Pod>(); spriteRenderer = GetComponent <SpriteRenderer>(); if (pod) { pod.DeclareThis(Label, this); } //do the usual parameter-setting base.Awake(); }