protected override void OnDrawActionGizmos() { var op = this.gameObject.transform.position - (this.gameObject.transform.forward * 0.5f); var rotate = this.gameObject.transform.eulerAngles; var direction = Quaternion.Euler(rotate) * Vector3.forward; Gizmos.color = Color.red; MyGizmos.DrawFOV(op, direction, FOV, Range); }
private void OnDrawGizmosSelected() { var op = this.gameObject.transform.position - (this.gameObject.transform.forward * 0.5f); var rotate = this.gameObject.transform.eulerAngles; var direction = Quaternion.Euler(rotate) * Vector3.forward; Gizmos.color = Color.green; MyGizmos.DrawFOV(op, direction, FOV, Range); Gizmos.color = Color.red; Gizmos.DrawWireSphere(this.gameObject.transform.position, GetAttackDistance()); }
private void OnDrawGizmosSelected() { Gizmos.color = Color.red; MyGizmos.DrawFOV(transform.position + new Vector3(0, 0.5f, 0), transform.forward, FOV, AttackDistance); }