// Use this for initialization void Start() { ability = 3; paddle = GameObject.FindObjectOfType <Paddle>(); power = GameObject.FindObjectOfType <PowerPull>(); triggerAudio = GetComponent <AudioSource>(); paddleToBallVector = this.transform.position - paddle.transform.position; ballToPaddleStart = paddleToBallVector; print(paddleToBallVector); }
// Use this for initialization void Start() { timesHit = 0; maxHits = hitSprites.Length + 1; levelmanager = GameObject.FindObjectOfType <LevelManager> (); ball = GameObject.FindObjectOfType <Ball>(); powerPull = GameObject.FindObjectOfType <PowerPull>(); startColor = gameObject.GetComponent <SpriteRenderer>().color; //test //if (test != null) {print ("test is not null");}else {print ("test is null");} }