Class BaseCubeController
Interprets properties of the simplest unit - cube, such as OnSelect. Displays a line between the selected cube and its nearest neighbour cube.
Implements
Namespace: XRC.Students.SU2023.IN03.Chen
Assembly: cs.temp.dll.dll
Syntax
public class BaseCubeController : MonoBehaviour, IBaseCube
Properties
connectedCube
The nearest neighbour of this cube being selected
Declaration
public GameObject connectedCube { get; }
Property Value
Type | Description |
---|---|
GameObject |
Methods
NearestNeighbor()
Find the nearest neighbor of the cube currently being selected
Declaration
public void NearestNeighbor()
Update()
When this cube is being selected, detects all other cubes in the scene. Display a line between the selected cube and its nearest cube, indicating a potential grouping relationship.
Declaration
public void Update()