//public GameObject toy; // Use this for initialization void Start() { // Get the associated NPC controller npc = this.gameObject.GetComponent<NPC>(); GameObject bedroomManagerGo = GameObject.Find ("BedroomManager").gameObject; manager = bedroomManagerGo.GetComponent<BedroomLevelManager>(); //toy.SetActive(false); }
void Start() { manager = GameObject.Find("BedroomManager").GetComponent<BedroomLevelManager>(); setFriendAnimation(NPCAnimations.AnimationIndex.IDLE); }