// Use this for initialization void Start() { grid = GameObject.FindGameObjectWithTag("Grid").GetComponent <IslandGrid>(); teleportationGrid = GameObject.FindGameObjectWithTag("TeleportGrid").GetComponent <TeleportationGrid>(); if (hasIntro) { CreateIsland(); } particle = GetComponentInChildren <ParticleSystem>(); }
public void SetNodeCoords(Vector2 coords, float offset) { nodeCoords = coords; grid = GameObject.FindGameObjectWithTag("TeleportGrid").GetComponent <TeleportationGrid>(); playerOffset = offset; }