コード例 #1
0
    public override void Init(TileSystem tileSystem)
    {
        base.Init(tileSystem);

        InitTileTypeRandomTable();
        mapData = MapData.GetInstance();

        scoreAssistance = GetAssistance(typeof(ScoreAssistance).Name) as ScoreAssistance;
        petAssistance   = GetAssistance(typeof(PetAssistance).Name) as PetAssistance;
    }
コード例 #2
0
ファイル: PetAssistance.cs プロジェクト: HyunsunRyu/LineCrush
    public override void Init(TileSystem tileSystem)
    {
        base.Init(tileSystem);

        if (gotExpInGame == null)
        {
            gotExpInGame = new int[Define.selectedPetsCount];
        }

        for (int i = 0; i < Define.selectedPetsCount; i++)
        {
            skillData[i] = new SkillPack();
        }

        mapAssistance      = GetAssistance(typeof(MapAssistance).Name) as MapAssistance;
        scoreAssistance    = GetAssistance(typeof(ScoreAssistance).Name) as ScoreAssistance;
        gameTimeAssistance = GetAssistance(typeof(GameTimeAssistance).Name) as GameTimeAssistance;
    }
コード例 #3
0
ファイル: GameManager.cs プロジェクト: HyunsunRyu/LineCrush
    protected override void Awake()
    {
        instance = this;

        ScenesManager.AddScene(this);

        tileRoot   = tileRootTrans;
        animalRoot = animalRootTrans;

        Init();

        uiSystem.InitSystem();
        popupSystem.InitSystem();
        tileSystem.InitSystem();

        TestCoder.SetTestCode(KeyCode.Space, TestCode);

        scoreAssistance    = Assistance.GetAssistance(typeof(ScoreAssistance).Name) as ScoreAssistance;
        gameTimeAssistance = Assistance.GetAssistance(typeof(GameTimeAssistance).Name) as GameTimeAssistance;
        petAssistance      = Assistance.GetAssistance(typeof(PetAssistance).Name) as PetAssistance;
    }
コード例 #4
0
    public override void Init(TileSystem tileSystem)
    {
        base.Init(tileSystem);

        scoreAssistance = GetAssistance(typeof(ScoreAssistance).Name) as ScoreAssistance;
    }