コード例 #1
0
 // Use this for initialization
 void Awake()
 {
     factory    = EnemyFactory.getInstance();
     gameFlow   = GameSceneController.getInstance() as GameFlow;
     controller = GameSceneController.getInstance();
     waves      = GameData.getInstance().waveLists;
 }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        controller = GameSceneController.getInstance();
        controller.setGameMonitor(this);

        enemyFactory = EnemyFactory.getInstance();
        gameStatus   = transform.GetComponent <GameStatus>();
    }
コード例 #3
0
    void Start()
    {
        gameSceneController = GameSceneController.getInstance();
        gameSceneController.setGameModels(this);

        data.initLevelData(level);

        fm.setBalance(data.balance);
    }
コード例 #4
0
    void Start()
    {
        gameSceneController = GameSceneController.getInstance();
        gameSceneController.setGameStatus(this);

        gameState = GameState.Running;

        gamePointManager = GamePointManager.getInstance();
    }
コード例 #5
0
ファイル: Enemy.cs プロジェクト: CalebPoon/TowerDefence2D
    // Use this for initialization
    void Start()
    {
        target       = WaypointManager.waypoints[0];
        enemyFactory = EnemyFactory.getInstance();
        controller   = GameSceneController.getInstance();

        data = GameData.getInstance();

        loadEnemyData();
    }
コード例 #6
0
    // Use this for initialization
    void Start()
    {
        controller = GameSceneController.getInstance();
        controller.setGameMonitor(this);

        enemyFactory = EnemyFactory.getInstance();

        data = GameData.getInstance();
        remainTimeOfLevel = data.LevelTime[controller.getLevel()];
    }
コード例 #7
0
ファイル: Enemy.cs プロジェクト: chenxuefen/TowerDefence2D
    protected virtual void Awake()
    {
        GameObject hb = Instantiate(healthBarPrefab, transform);

        hb.transform.localPosition = new Vector3(0, 0.7f, -1);

        healthBar = GetComponentInChildren <HealthBar>();

        enemyFactory = EnemyFactory.getInstance();
        controller   = GameSceneController.getInstance();

        data = GameData.getInstance();

        loadEnemyData();

        fullHP = hp;
        healthBar.FullHealth = fullHP;
    }
コード例 #8
0
 // Use this for initialization
 void Awake()
 {
     controller = GameSceneController.getInstance();
     controller.setUIManager(this);
 }
コード例 #9
0
 void Start()
 {
     userClickOp  = GameSceneController.getInstance() as UserClickOp;
     sceneClickOp = GameObject.Find("GameManager").GetComponent <SwitchSceneUtil>() as SceneClickOp;
 }
コード例 #10
0
 private FinanceManager()
 {
     controller = GameSceneController.getInstance();
 }
コード例 #11
0
ファイル: GameStatus.cs プロジェクト: Lshic/TowerDefence2D
 void Start()
 {
     gameSceneController = GameSceneController.getInstance();
     gameSceneController.setGameStatus(this);
 }
コード例 #12
0
    private FinanceManager()
    {
//        moneyUIText = GameObject.FindWithTag("Money");
        controller = GameSceneController.getInstance();
    }
コード例 #13
0
 // Use this for initialization
 void Awake()
 {
     factory    = EnemyFactory.getInstance();
     gameFlow   = GameSceneController.getInstance() as GameFlow;
     controller = GameSceneController.getInstance();
 }