Exemple #1
0
        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);
        }
Exemple #2
0
        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());
        }
Exemple #3
0
 private void OnDrawGizmosSelected()
 {
     Gizmos.color = Color.red;
     MyGizmos.DrawFOV(transform.position + new Vector3(0, 0.5f, 0), transform.forward, FOV, AttackDistance);
 }