/// <summary> /// Awake this instance. /// </summary> void Awake() { // Setting up references. circle = GetComponent <CircleCollider2D> (); rigidBody2DUnidirectional = GetComponent <RigidBody2DUnidirectional>(); cthulhuAnimationSetter = GetComponent <CthulhuAnimationSetter>(); jump2d = GetComponent <Jump2D>(); NotificationCenter.DefaultCenter().AddObserver(this, "ReceiveDamage"); }
/// <summary> /// Awake this instance. /// </summary> void Awake() { // Setting up references. circle = GetComponent<CircleCollider2D> (); rigidBody2DUnidirectional = GetComponent<RigidBody2DUnidirectional>(); cthulhuAnimationSetter = GetComponent<CthulhuAnimationSetter>(); jump2d = GetComponent<Jump2D>(); NotificationCenter.DefaultCenter().AddObserver(this, "ReceiveDamage"); }