// EXECUTABLE: ---------------------------------------------------------------------------- public override bool InstantExecute(GameObject target, IAction[] actions, int index) { if (HookCamera.Instance != null) { if (HookCamera.Instance.gameObject.GetComponent <CameraObjectOutline>() == null) { HookCamera.Instance.gameObject.AddComponent <CameraObjectOutline>(); } CameraObjectOutline cam = HookCamera.Instance.Get <CameraObjectOutline>(); if (enableVariable == true) { cam.outlining = (bool)this.outlineVariable.Get(target); } else { if (enableOutlining == true) { cam.outlining = true; } else { cam.outlining = false; } } } return(true); }
// EXECUTABLE: ---------------------------------------------------------------------------- public override bool InstantExecute(GameObject target, IAction[] actions, int index) { if (HookCamera.Instance != null) { if (HookCamera.Instance.gameObject.GetComponent <CameraObjectOutline>() == null) { HookCamera.Instance.gameObject.AddComponent <CameraObjectOutline>(); } CameraObjectOutline cam = HookCamera.Instance.Get <CameraObjectOutline>(); if (colourVar == true) { cam.outlineColour = (Color)this.outlineColourVar.Get(target); } else { cam.outlineColour = outlineColour; } if (widthVar == true) { cam.outlineWidth = (float)this.outlineWidth.Get(target); } else { cam.outlineWidth = _outlineWidth; } if (onlyVar == true) { cam.outlineOnly = (float)this.outlineOnly.Get(target); } else { cam.outlineOnly = _outlineOnly; } } return(true); }