Exemple #1
0
 // Use this for initialization
 private void Start()
 {
     _cam             = Camera.main;
     _rotateToPointer = GetComponent <RotateToPointer>();
     _constantForce   = GetComponent <ConstantForce2D>();
     _rigidbody       = GetComponent <Rigidbody2D>();
     _audioSource     = GetComponent <AudioSource>();
 }
Exemple #2
0
            internal static bool Prefix(RotateToPointer __instance)
            {
                if (__instance.dartlingMaintainLastPos != null && __instance.dartlingMaintainLastPos.tower != null)
                {
                    return(__instance.dartlingMaintainLastPos.tower.targetType.intID == -1);
                }

                return(true);
            }