// Start is called before the first frame update void Start() { neighbourManager = GetComponent <NeighbourManager>(); spriteRenderer = transform.GetChild(0).GetComponent <SpriteRenderer>(); UpdateSprite(); }
void Awake() { if (Instance == null) { Instance = this; } else if (Instance != this) { DestroyImmediate(gameObject); } cameraTransform = CameraCache.Main.transform; //Debug.Log($"Check persistent data path exists: {Application.persistentDataPath}."); //Directory.CreateDirectory(Application.persistentDataPath); graphInfoFilePath = Path.Combine(Application.persistentDataPath, graphInfoFileName); neighbourManager = new NeighbourManager(selectionManager); }
private void Start() { neighbourManager = GetComponent <NeighbourManager>(); neighbourManager.NotifyAllNeighbours(); }
private void Start() { neighbourManager = GetComponent <NeighbourManager>(); }
public void OnEnable() { neighbourManager = GetComponent <NeighbourManager>(); spriteUpdater = GetComponent <IUpdateSprite>(); }