GlobalEvent.LoadEvent C# (CSharp) Méthode

LoadEvent() public méthode

public LoadEvent ( ) : bool
Résultat bool
    public bool LoadEvent()
    {
        if(this.eventFile != "" && this.gameEvent.LoadEventData(this.GetEventFile()))
        {
            if(Application.isPlaying)
            {
                this.LoadResources();
                this.gameEvent.prefab = this.prefab;
                this.gameEvent.audioClip = this.audioClip;
            }
            this.fileOk = true;
            this.timer = 0;
            this.eventStarted = false;
        }
        return this.fileOk;
    }