Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        neighbourManager = GetComponent <NeighbourManager>();
        spriteRenderer   = transform.GetChild(0).GetComponent <SpriteRenderer>();

        UpdateSprite();
    }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
 private void Start()
 {
     neighbourManager = GetComponent <NeighbourManager>();
     neighbourManager.NotifyAllNeighbours();
 }
Esempio n. 4
0
 private void Start()
 {
     neighbourManager = GetComponent <NeighbourManager>();
 }
Esempio n. 5
0
 public void OnEnable()
 {
     neighbourManager = GetComponent <NeighbourManager>();
     spriteUpdater    = GetComponent <IUpdateSprite>();
 }