FirstScene.Start C# (CSharp) Method

Start() private method

private Start ( ) : void
return void
    void Start()
    {
        this.onChar = false;
        this.goingback = false;
        // D/N
        //this.sun = gameObject.GetComponentInChildren<Light>();
        this.sun.gameObject.transform.TransformPoint(sun.transform.position);

        this.actual_time = 0f;
        this.cdMusic = 0f;
        this.speed = 1.2f;
        this.volume = PlayerPrefs.GetFloat("Sound_intensity", 0.1f);
        this.path = gameObject.transform.FindChild("Path").gameObject;
        this.fistStep = this.path.transform.GetChild(0).gameObject;
        this.step = this.fistStep;
        // Camera and Path
        for (int i = 1; i < this.path.transform.childCount; i++)
        {
            this.step.GetComponent<FSPath>().NextStep = path.transform.GetChild(i).gameObject;
            this.step = path.transform.GetChild(i).gameObject;
        }

        this.step.GetComponent<FSPath>().NextStep = this.fistStep;
        this.step = this.fistStep;
        this.cam.transform.position = this.step.transform.position;
        this.step = this.step.GetComponent<FSPath>().NextStep;
        this.cam.transform.LookAt(this.step.transform);
        this.camAim = this.campCameraPos.transform.GetChild(0).gameObject;

        this.backpos = this.cam.transform.position;
        this.backrot = this.cam.transform.rotation;
        // Audio Source
        this.source.volume = this.volume;
        this.clipMenu = Resources.Load<AudioClip>("Sounds/Music/Menu");
        this.clipButton = Resources.Load<AudioClip>("Sounds/Button/Button");
    }