Exemplo n.º 1
0
 public ComplexTarget(Vector3 location)
 {
     TargetType = ComplexTargetType.Vector3;
     _target    = null;
     _vector    = location;
     _surface   = DefualtSurface;
 }
Exemplo n.º 2
0
 public ComplexTarget(Vector3 location, IPlanarSurface surface)
 {
     TargetType = ComplexTargetType.Vector2;
     _target    = null;
     _vector    = location;
     _surface   = surface;
 }
Exemplo n.º 3
0
 public ComplexTarget(Transform target, IPlanarSurface surface)
 {
     if (target != null)
     {
         TargetType = ComplexTargetType.Transform;
         _target    = target;
     }
     else
     {
         TargetType = ComplexTargetType.Null;
         _target    = null;
     }
     _vector  = Vector3.zero;
     _surface = surface;
 }
Exemplo n.º 4
0
 public ComplexTarget(IAspect aspect, IPlanarSurface surface)
 {
     if (aspect != null)
     {
         TargetType = ComplexTargetType.Aspect;
         _target    = aspect;
     }
     else
     {
         TargetType = ComplexTargetType.Null;
         _target    = null;
     }
     _vector  = Vector3.zero;
     _surface = surface;
 }
Exemplo n.º 5
0
 public ComplexTarget(Transform target)
 {
     if (target != null)
     {
         TargetType = ComplexTargetType.Transform;
         _target    = target;
     }
     else
     {
         TargetType = ComplexTargetType.Null;
         _target    = null;
     }
     _vector  = Vector3.zero;
     _surface = DefualtSurface;
 }
Exemplo n.º 6
0
 public ComplexTarget(IAspect aspect)
 {
     if (aspect != null)
     {
         TargetType = ComplexTargetType.Aspect;
         _target    = aspect;
     }
     else
     {
         TargetType = ComplexTargetType.Null;
         _target    = null;
     }
     _vector  = Vector3.zero;
     _surface = DefualtSurface;
 }