// Use this for initialization void Start() { sceneRef = GameObject.FindObjectOfType <SceneRefScript> (); PlayerCheck(); myPicker = null; ringActive = true; }
// Use this for initialization void Start() { if (myExhaust != null) { myExhaust.GetComponent <ParticleSystem> ().startColor = myColor; } if (youWinText != null) { youWinText.SetActive(false); } sceneRef = GameObject.FindObjectOfType <SceneRefScript> (); sceneRef.GetComponent <SceneRefScript> ().Players.Add(gameObject); Cursor.lockState = CursorLockMode.Locked; myHP = 100; moveSpeed = defSpeed; if (isBot == true) { botCanShoot = true; } PlayerCheck(); }
// Use this for initialization void Start() { nextPieceSpawnPoint.transform.rotation = Quaternion.identity; sceneRef = FindObjectOfType <SceneRefScript> (); }