Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        currentScene = SceneManager.GetActiveScene();

        MagicLightScript = MagicLightObj.GetComponent <magicLight>();

        MovementScript = this.gameObject.GetComponent <PlayerMovement>();
    }
Exemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        magicLightScript = magicLightObj.GetComponent <magicLight>();

        VitaParticleScript     = VitaSoul.GetComponent <VitaSoul_particle>();
        VitaParticleGazeScript = VitaSoul.GetComponent <GazeMovement>();

        for (int i = 0; i < 3; i++)
        {
            WallDisolveScript[i] = Wall[i].GetComponent <Dislove>();
        }

        VitaParticleScript.MoveSpeed = 9.5f;

        VitaSoulRenderer = VitaSoul.GetComponent <SpriteRenderer>();

        //coroutine = FadingVitaSoulIEnumerator();
    }
Exemplo n.º 3
0
    // Start is called before the first frame update
    void Start()
    {
        //Player
        Player = GameObject.Find("Player");
        PlayerMovementScript = Player.GetComponent <PlayerMovement>();
        SkillScript          = Player.GetComponent <PlayerSkill>();
        magicLightObj        = GameObject.Find("magicLight");
        magicLightScript     = magicLightObj.GetComponent <magicLight>();

        //VitaSoul
        VitaSoul = GameObject.Find("VitaSoul");
        VitaParticleGazeScript = VitaSoul.GetComponent <GazeMovement>();
        VitaParticleScript     = VitaSoul.GetComponent <VitaSoul_particle>();
        VitaSoulRenderer       = VitaSoul.GetComponent <SpriteRenderer>();
        VitaSoulBG             = GameObject.Find("VitaParticle").GetComponent <Animator>();


        //Skill 2
        Skill2Sprite      = Skill2Board.GetComponent <SpriteRenderer>();
        Skill2GroundColor = Skill2Board.transform.GetChild(0).GetComponent <SpriteRenderer>();

        fCanGazeTime = magicLightScript.fRaiseHand + fLightUpTime;
    }
Exemplo n.º 4
0
    // Start is called before the first frame update
    void Start()
    {
        magicLightScript = magicLightObj.GetComponent <magicLight>();

        VitaParticleScript = VitaSoul.GetComponent <VitaSoul_particle>();
    }