예제 #1
0
    // Start is called before the first frame update
    void Start()
    {
        //control player movement
        PlayerMovementScript = Player.GetComponent <PlayerMovement>();
        PlayerTriggerScript  = Player.GetComponent <PlayerTriggerDetect>();

        //control Vita dialogue , movement
        VitaDialogueScript = Vita.GetComponent <NPC_Dialogue>();
        VitaMovementScript = Vita.GetComponent <Vita_Movement>();

        //controlChangeScene
        levelLoaderScript = levelLoader.GetComponent <LevelLoader>();

        //control Vita Soul
        VitaSoulScript = VitaSoul.GetComponent <VitaSoul_particle>();


        //Defluat setting
        BookCase.transform.position = new Vector2(-8.2f, BookCase.transform.position.y);

        Player.transform.position = new Vector2(-3.58f, -1.89f);

        Vita.SetActive(false);
        VitaSoul.SetActive(true);

        VitaSoulScript.MoveToward(new Vector2(VitaSoul.transform.position.x, -0.54f));
        VitaSoulScript.MoveSpeed = 7.0f;

        //control Clue
        ClueScript = Clue.GetComponent <Clue>();


        VitaSoulScript.VitaSpriteFadeIn();
    }
예제 #2
0
    // Start is called before the first frame update
    void Start()
    {
        //Have ever Enter
        GameDataManager.instance.bEnterPrivateRoom = true;

        //control Vita dialogue , movement
        VitaTrans          = Vita.GetComponent <Transform>();
        VitaDialogueScript = Vita.GetComponent <NPC_Dialogue>();
        VitaMovementScript = Vita.GetComponent <Vita_Movement>();

        //control Player
        PlayerTrans          = Player.GetComponent <Transform>();
        PlayerMovementScript = Player.GetComponent <PlayerMovement>();
        PlayerTriggerScript  = Player.GetComponent <PlayerTriggerDetect>();
        PlayerAni            = Player.GetComponent <Animator>();

        //new dialogue
        Dialogue = new Dialogue();

        //box
        BoxRenderer = Box.GetComponent <SpriteRenderer>();

        //magic wound
        MagicWoundScript = MagicWound.GetComponent <MagicWoundMovement>();
        MagicWoundTrans  = MagicWound.GetComponent <Transform>();

        //control Vita Soul
        VitaSoulScript = VitaSoul.GetComponent <VitaSoul_particle>();

        //controlChangeScene
        levelLoaderScript = levelLoader.GetComponent <LevelLoader>();

        //UI
        CGMoveScript = CGMove.GetComponent <VitaCGMovement>();
    }
    // Start is called before the first frame update
    void Start()
    {
        GameDataManager.instance.bEnterStudyRoom = true;

        //control player movement
        PlayerMovementScript = Player.GetComponent <PlayerMovement>();
        PlayerTriggerScript  = Player.GetComponent <PlayerTriggerDetect>();

        //control Vita dialogue , movement
        VitaDialogueScript = Vita.GetComponent <NPC_Dialogue>();
        VitaMovementScript = Vita.GetComponent <Vita_Movement>();

        //control Clue
        ClueScript = Clue.GetComponent <Clue>();

        //controlChangeScene
        levelLoaderScript = levelLoader.GetComponent <LevelLoader>();

        //new dialogue
        dialogue = new Dialogue();

        //UI
        CGMoveScript = CGMove.GetComponent <VitaCGMovement>();
    }