Пример #1
0
 override protected void onInit()
 {
     if (Attacker != null)
     {
         _cacheTranform = Attacker.FindInChildren(DummyPoint.ToString());
         if (_cacheTranform == null)
         {
             _cacheTranform = Attacker.transform;
         }
         if (TraceType == eTraceType.eTraceType_SpecialPos)
         {
             if (SpecialPos == Vector3.zero)
             {
                 Destroy(gameObject);
                 return;
             }
             _lastTracePos = SpecialPos;
         }
         else
         {
             _lastTracePos = Target.transform.position;
         }
     }
 }
Пример #2
0
 public static int StaticOverload(DummyPoint a)
 {
     return(2);
 }