private void Start() { if (node.platformType == PlatformNode.PlatformType.BUTTON) { button = GetComponent <ButtonPlatform>(); } }
// Start is called before the first frame update void Start() { ghostPlatformButton = GameObject.FindGameObjectWithTag("GhostPlatformButton").GetComponent <ButtonPlatform>(); nextPos = startPos.position; }