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