Exemple #1
0
 public override void OnDestroy()
 {
     base.OnDestroy();
     UnObserveEvents();
     _getScreenPosition.OnDestroy();
     _toolTipFade       = null;
     _getScreenPosition = null;
 }
Exemple #2
0
    //TODO Change size calculations to work from camera size rather than canvas so still works when aspect changes

    public override void OnAwake()
    {
        base.OnAwake();
        SetUp();
        SetTooltipsVariables();
        _toolTipFade       = EZInject.Class.WithParams <IToolTipFade>(this);
        _getScreenPosition = EZInject.Class.WithParams <IGetScreenPosition>(this);
        _getScreenPosition.OnAwake();
    }