MusicPlayer.Interact C# (CSharp) Method

Interact() public method

public Interact ( ) : bool
return bool
    public override bool Interact()
    {
        bool val = false;
        // start event on interaction here
        if(EventStartType.INTERACT.Equals(this.startType) && this.CheckVariables() && this.gameObject.active)
        {
            this.PlayMusic();
            val = true;
        }
        return val;
    }