void Awake() { if (AttackFrameReceiver != null) { m_AttackReceiver = AttackFrameReceiver as IAttackFrameReceiver; if (m_AttackReceiver == null) { Debug.LogError( "The Monobehaviour set as Attack Frame Receiver don't implement the IAttackFrameReceiver interface!", AttackFrameReceiver); } } if (FootstepFrameReceiver) { m_FootstepFrameReceiver = FootstepFrameReceiver as IFootstepFrameReceiver; if (m_AttackReceiver == null) { Debug.LogError( "The Monobehaviour set as Footstep Frame Receiver don't implement the IFootstepFrameReceiver interface!", FootstepFrameReceiver); } } }
private void Awake() { if (AttackFrameReceiver != null) { m_AttackReceiver = AttackFrameReceiver as IAttackFrameReceiver; } }