Пример #1
0
    public OptionsManger(SerializationInfo info, StreamingContext context)
    {
        bindings = (Bindings)info.GetValue("bindings", typeof(Bindings));

        //overwrite old instance
        instance = this;
    }
Пример #2
0
 public static OptionsManger getInstance()
 {
     if (instance == null)
     {
         instance = new OptionsManger();
     }
     return(instance);
 }
Пример #3
0
 /* Instance Methods */
 public override void Awake()
 {
     base.Awake();
     binds = OptionsManger.getInstance().getBindings();
 }