예제 #1
0
 protected override void Start()
 {
     base.Start();
     dbRef            = Singleton.Instance <DBReference>();
     fieldReflection  = Singleton.Instance <FieldReflection>();
     OpenTaskBtn.IsOn = false;
 }
예제 #2
0
    private void Awake()
    {
        dbReference         = Singleton.Instance <DBReference>();
        fieldReflection     = Singleton.Instance <FieldReflection>();
        listenersController = Singleton.Instance <EventListenersController>();
        listenersController.AddEmiter("S_UPGRADE", S_UPGRADE);

        LevelUpBtn.OnClickEvents += OnLevelBtn;
    }
예제 #3
0
    protected override void Start()
    {
        base.Start();

        dBReference         = Singleton.Instance <DBReference>();
        fieldReflection     = Singleton.Instance <FieldReflection>();
        listenersController = Singleton.Instance <EventListenersController>();

        listenersController.AddEmiter("S_TRAINING", S_TRAINING);
    }
예제 #4
0
 protected override void Start()
 {
     base.Start();
     fieldReflection = Singleton.Instance <FieldReflection>();
 }
예제 #5
0
 public FieldAccessor(string fieldName)
 {
     Get = FieldReflection.CreateGetDelegate <TSubject, TField>(fieldName);
     Set = FieldReflection.CreateSetDelegate <TSubject, TField>(fieldName);
 }