Пример #1
0
 //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);
 }
Пример #2
0
 void Start()
 {
     manager = GameObject.Find("BedroomManager").GetComponent<BedroomLevelManager>();
     setFriendAnimation(NPCAnimations.AnimationIndex.IDLE);
 }