Esempio n. 1
0
    // Start is called before the first frame update
    void Start()                //퍼즐 랜덤위치로 돌려주자
    {
        instance = this;
        theGame  = GameManager.instance;
        theDB    = DatabaseManager.instance;

        //theGame.playing = true;
        //GoRandom();
        // if(theDB.gameOverList.Contains(1)) {

        //         checkButton.SetActive(false);
        //         afterCheckImage.SetActive(true);
        // }
    }
Esempio n. 2
0
 private void Awake()
 {
     if (game1Instance != null)
     {
         Debug.Log("Find other gamemanager instance.");
     }
     else
     {
         game1Instance = this;
     }
     music             = gameObject.AddComponent <AudioSource>();
     music.playOnAwake = false;
     death             = Resources.Load <AudioClip>("Music/death1");
     Boom = Resources.Load <AudioClip>("Music/boom2");
 }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     LifeTime       = maxLifeTime;
     instance       = GameManagerController.instance;
     game1Instance  = game1.game1Instance;
     chainLightning = GetComponent <ChainLightning>();
     lineRenderer   = GetComponent <LineRenderer>();
     // 初始化距离矩阵
     itemCount = transforms.Count;
     if (itemCount < 2)
     {
         Debug.LogError("Transform list is not signed correctly.");
     }
     else
     {
         initDistanceMatrix();
     }
 }
Esempio n. 4
0
 private void Start()
 {
     instance      = GameManagerController.instance;
     game1Instance = game1.game1Instance;
 }