// 0 = None // 1 = Down // 2 = Held // 3 = Up // Use this for initialization void Start() { movement = GetComponent<PlayerMovement>(); combat = GetComponent<PlayerCombat>(); info = GetComponent<PlayerInfo>(); ball = GameObject.Find("Ball").GetComponent<BBall>(); angle = Vector2.right; playerString = " - Player " + info.team; horizontal = 0; GameObject[] hoops = GameObject.FindGameObjectsWithTag("Basket"); for(int i = 0; i < hoops.Length; i++) { if(hoops[i].GetComponent<Hoop>().team != info.team) { hoop = hoops[i].transform; } } }
// Use this for initialization void Awake() { boost = maxBoost / 2; hsbc = HSBColor.FromColor (Color.red); mashText = GameObject.Find("MashText").GetComponent<Text>(); ball = GameObject.Find("Ball").GetComponent<BBall>(); //slamText = GameObject.Find("Slam - Team " + team / 2); dunkPanel = GameObject.Find("End").transform; //Debug.Log(outline.transform.name); }