Esempio n. 1
0
 protected virtual void OnEnable()
 {
     AbsoluteAnglesStream = AbsoluteAnglesStream ?? FindObjectOfType <EnfluxManager>();
     if (AbsoluteAnglesStream == null)
     {
         Debug.LogError(name + ": AbsoluteAnglesStream isn't assigned and no instance is in the scene!");
         enabled = false;
         return;
     }
     AbsoluteAnglesStream.AbsoluteAngles.UpperBodyAnglesChanged += OnUpperBodyAnglesChanged;
     AbsoluteAnglesStream.AbsoluteAngles.LowerBodyAnglesChanged += OnLowerBodyAnglesChanged;
 }
Esempio n. 2
0
 protected virtual void Reset()
 {
     AbsoluteAnglesStream = AbsoluteAnglesStream ?? FindObjectOfType <EnfluxManager>();
 }