CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: trouble with an interface

  1. #1
    Join Date
    Sep 2015
    Posts
    18

    trouble with an interface

    I am trying to create a state machine, but I am having trouble with one of the states inheriting from the interface. If anyone can tell me what I am doing wrong please let me know! Here is the code:

    Code:
    using UnityEngine;
    using System.Collections;
    using Assets.Code.Statemachine.States;
    using Assets.Code.Interfaces;
    
    public class PauseState : IStateBase
    {
        public void StateUpdate()
        {
    
        }
        public void Show()
        {
    
        }
        public void PlayingState()
        {
    
    
        }
        public void OptionsState(){
    
        }
        public void GameOverState(){
    
        }
        public void StartMenuState()
        {
    
        }
        public void Level1State()
        {
    
        }
    
    
    }

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,306

    Re: trouble with an interface

    There isn't much for us to help with if you don't give us the IStateBase definition and tell us what the problem is.

  3. #3
    Join Date
    Mar 2001
    Posts
    2,527

    Re: trouble with an interface

    Is it a compiler error? A runtime error? What is going on. Don't worry about it if your having a hard time expressing it, just struggle through it.
    ahoodin
    To keep the plot moving, that's why.

  4. #4
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,268

    Re: trouble with an interface

    What you have posted is simple just empty methods. How do you expect us to help you with that?
    [SIGPIC][/SIGPIC]
    All my Articles
    Hannes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)