void Awake() { if (Instance != null) { GameObject.Destroy(Instance); } else { Instance = this; } DontDestroyOnLoad(this); sm = snekHed.GetComponent <snekmove>(); // GameUI = GameObject.Find("Game UI"); }
public void initFromSnek(snekmove sm) { smove = sm; isInit = true; }
private void Awake() { snekHEed = GameObject.Find("snekhead"); sm = snekHEed.GetComponent <snekmove>(); }