예제 #1
0
 // Use this for initialization
 void Start()
 {
     anim = GetComponent <Animator>();
     if (null == anim)
     {
         print("anim is null");
     }
     gameStateAndData = GameObject.Find("StateObject").GetComponent <GameStatesAndData>();
     audSource        = GetComponent <AudioSource>();
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     ourCamera        = GetComponent <Camera>();
     gameStateAndData = GameObject.Find("StateObject").GetComponent <GameStatesAndData>();
 }