void Awake() { var gd = GameObject.Find("/GameDirector"); gameDirector = gd.GetComponent<GameDirector>(); id = GetComponent<Id>(); movement = GetComponent<Movement>(); }
void Start() { var gd = GameObject.Find("/GameDirector"); gameDirector = gd.GetComponent<GameDirector>(); textUI = GetComponent<Text>(); }