private void InitializeSplat(Splat splat) { splat.Manager = this; splat.Initialize(); splat.gameObject.SetActive(false); UpdateProjectorIgnoreLayers(splat); }
/// <summary> /// Position of Current Spell Indicator or Mouse Ray if unavailable /// </summary> public Vector3 GetSpellCursorPosition() { // if(CurrentSpellIndicator != null) { // return CurrentSpellIndicator.transform.position; // } else { return(Splat.Get3DMousePosition()); // } }
private void UpdateProjectorIgnoreLayers(Splat splat) { splat.Projectors.ToList().ForEach(x => x.ignoreLayers = ProjectorIgnore); }