protected virtual void OnDisable() { if (parent) { parent.SetPlayAreaCursorCollision(false); } }
private void OnTriggerStay(Collider collider) { if (parent.enabled && parent.gameObject.activeInHierarchy && ValidTarget(collider)) { parent.SetPlayAreaCursorCollision(true); } }
private void TurnOnBeam(uint index) { beamEnabledState++; if (enabled && !isActive && CanActivate()) { if (playAreaCursor) { playAreaCursor.SetPlayAreaCursorCollision(false); } controllerIndex = index; TogglePointer(true); isActive = true; destinationSetActive = true; } }
private void TurnOnBeam(uint index) { beamEnabledState++; if (enabled && !isActive && CanActivate()) { if (playAreaCursor) { playAreaCursor.SetPlayAreaCursorCollision(false); } controllerIndex = index; TogglePointer(true); isActive = true; destinationSetActive = true; if (pointerOriginTransformFollowGameObject != null) { pointerOriginTransformFollowGameObject.SetActive(true); pointerOriginTransformFollow.Follow(); } } }