예제 #1
0
 void Start()                                                            //Don't Touch
 {
     this.gameObject.GetComponent <BoxCollider2D>().isTrigger = true;
     //instance = this;
     theDM     = DialogueManager.instance;
     theSelect = SelectManager.instance;
     theOrder  = OrderManager.instance;
     thePlayer = PlayerManager.instance;
     theDB     = DatabaseManager.instance;
     theCamera = CameraMovement.instance;
     theMap    = MapManager.instance;
     thePuzzle = PuzzleManager.instance;
     theFade   = Fade2Manager.instance;
     if (theDB.trigOverList.Contains(trigNum))//트리거 실행 후 맵에 다시 돌아왔을 때 DB list에 들어가 있으면 다시 실행 안됨.
     {
         flag = true;
         if (repeatBifur != 0)
         {
             flag  = false;
             bifur = repeatBifur;
         }
     }
     if (theDB.trigOverList.Contains(57))
     {
         fish.SetActive(true);
     }
 }
예제 #2
0
 private void Awake()
 {
     if (instance == null)
     {
         DontDestroyOnLoad(this.gameObject);
         instance = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
     //instance = this;
 }