Пример #1
0
 private void Start()
 {
     controllable     = GetComponent <PlayerControllable>();
     worldSpaceObject = GetComponent <WorldSpaceObject>();
     worldSpaceObject.controllable = controllable;
 }
Пример #2
0
 private void Start()
 {
     player           = FindObjectOfType <PlayerInfo>();
     worldSpaceObject = GetComponent <WorldSpaceObject>();
 }