예제 #1
0
    private void Start()
    {
        state = gameState.Start;

        stageCreater = Instantiate(stageCreater);
        stageCreater.transform.parent = transform;

        player = Instantiate(player);
        player.transform.parent = transform;

        footPrinter = Instantiate(footPrinter);
        footPrinter.transform.parent = transform;

        effectSpawner = Instantiate(effectSpawner);
        effectSpawner.transform.parent = transform;

        effectSpawner2 = Instantiate(effectSpawner2);
        effectSpawner2.transform.parent = transform;

        stageCreater.footPrinter    = footPrinter;
        stageCreater.effectSpawner  = effectSpawner;
        stageCreater.effectSpawner2 = effectSpawner2;

        player.haveMapDateObject = stageCreater;
    }
예제 #2
0
    private void Start()
    {
        //state = gameState.Game;
        state = gameState.Ready;
        //player.Reset();
        //blackScreen.color = new Color(0, 0, 0, 0.0f);
        blackScreen.color = new Color(0, 0, 0, 0.8f);

        stageCreater = Instantiate(stageCreater);
        stageCreater.transform.parent = transform;

        player = Instantiate(player);
        player.transform.parent = transform;

        footPrinter = Instantiate(footPrinter);
        footPrinter.transform.parent = transform;
    }