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