public void ThrowBird(Bird currentBird, Pig targetPig, Vector2 slingPos) { if(_lastTargetPig) _lastTargetPig.GetComponent<SpriteRenderer>().material.color = Color.white; IsThrowingBird = true; _throwTimer = 0f; _currentBird = currentBird; // Highlight the target if(!GameWorld.Instance._isSimulation) targetPig.GetComponent<SpriteRenderer>().material.color = Color.red; _nextShot = Solve(currentBird, targetPig, slingPos); currentBird.SelectBird(); }