void RegisterToSubject() { _strapsSpeedController = GameObject.Find("StrapsSpeedController").GetComponent <StrapsSpeedCalculationController>(); if (movingObjectType == OBJECT_TYPE.STRAP) { _strapsSpeedController.AddObserver(this); } }
void Start() { _speedController = GameObject.Find("StrapsSpeedController").GetComponent <StrapsSpeedCalculationController> (); _speedController.AddObserver(this); //Debug.Log ("SpawnerController is registered"); }