コード例 #1
0
 void Awake()
 {
     if (instace == null)
     {
         instace = this;
     }
 }
コード例 #2
0
 void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
     bordManager = BordManager.instace;
     gameManager = GameManager.instance;
     //Debug.Log ("Chadnan");
 }
コード例 #3
0
    void Awake()
    {
        if (instance == null)
            instance = this;
        else if (instance != this)
            Destroy (gameObject);

        DontDestroyOnLoad (gameObject);
        enemies = new List<Enemy> ();
        bordScript = GetComponent<BordManager> ();
        InitGame ();
    }
コード例 #4
0
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);
        enemies    = new List <Enemy> ();
        bordScript = GetComponent <BordManager> ();
        InitGame();
    }