/// <summary> /// Call base.Awake() first if you override /// </summary> protected virtual void Awake() { if (_pulse == null) { _pulse = gameObject.GetComponent <PulseModule>(); } }
/// <summary> /// Call base.Awake() first if you override /// </summary> protected virtual void Awake() { if( _pulse == null ) { _pulse = gameObject.GetComponent<PulseModule>(); } }
protected virtual void OnEnable() { _basePulse = target as PulseModule; _numSteps = _basePulse.Steps.Length; }