// Use this for initialization void Start() { _turtleRotateAndAnimate = GetComponent<TurtleRotateAndAnimate> (); turtleControls = GetComponent<TurtleControls> (); _spriteRenderer = GetComponent<SpriteRenderer> (); originalColor = _spriteRenderer.color; hurtColor = new Color (originalColor.r, originalColor.g, originalColor.b, .4f); }
// Use this for initialization void Start() { animator = GetComponent<Animator> (); currentState = wanderState; turtleLight = GetComponent<Light> (); rb2D = GetComponent<Rigidbody2D> (); _turtleRotateAndAnimate = GetComponent<TurtleRotateAndAnimate> (); // _turtleRotateAndAnimate.isSkidding = false; keepInRange = true; followTurtle = false; // lightOn (true); }