playMaker

Author Topic: create variabale of type custom c# class  (Read 1065 times)

raguelmoon

  • Playmaker Newbie
  • *
  • Posts: 4
create variabale of type custom c# class
« on: September 05, 2016, 07:37:58 AM »
Dear Users!
I want to create a variable of type class (custom c# class saved in project). For example following is class written in c#:
Question.cs
[System.Serializable]
public class Questions {
public string fact;
public bool isTrue;
}

Now I want to implement this class as type in another script (FSM) like this:

public Question [] questions;
private Question currentQuestion;

Please help me in this regards,
Thank you very much!
Ram