//private Vector3 nextRespawnLocation; // Use this for initialization void Start() { rb = GetComponent <Rigidbody2D> (); GameObject cameraObject = GameObject.FindGameObjectWithTag("MainCamera"); myCamera = cameraObject.GetComponent <Camera> (); ghost = ghostObject.GetComponent <GhostController> (); controllerName = ""; getControllerName(); nextShot = 0.0f; currentHealth = maxHealth; blinkDamageAnimation = GetComponent <BlinkDamageAnimation> (); healthTracker = GetComponent <HealthTracker> (); healthTracker.startHealth(maxHealth); gameController = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameController> (); isDead = false; }