예제 #1
0
 private void Start()
 {
     if (PlayerDeath.scene.Equals("Scene2D"))
     {
         tutorial      = 1;
         keyController = FindObjectOfType <KeyController>();
     }
     else if (PlayerDeath.scene.Equals("BossPhase"))
     {
         tutorial = 4;
         boss     = FindObjectOfType <BoneDragonController>();
     }
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     key  = FindObjectOfType <KeyController>();
     anim = GetComponent <Animator>();
 }