// Start is called before the first frame update void Start() { _initialPosition = transform.position; _initialRotation = transform.rotation; movementCameraBind = true; inGame = false; _buttons = GameObject.Find("ButtonInterractionsSystem").GetComponent <ButtonInteractions>(); }
// Start is called before the first frame update void Start() { _buttonInt = GameObject.Find("ButtonInterractionsSystem").GetComponent <ButtonInteractions>(); _spawnPoint = transform.GetChild(0); _onMouseOver = false; t = 2.0f; _ground = transform.GetChild(2).GetComponent <Renderer>(); _ownGroundHighlight = transform.GetChild(1).gameObject; _rendererHighlight = _ownGroundHighlight.GetComponent <Renderer>(); _colorStart = new Color32(48, 161, 65, 0); _colorEnd = new Color32(85, 255, 112, 0); _ownGroundHighlight.SetActive(false); _putUnitSong = GameObject.Find("PutUnitSong").GetComponent <AudioSource>(); _takeOffUnitSong = GameObject.Find("TakeOffUnitSong").GetComponent <AudioSource>(); //Physics.gravity = new Vector3(0, -9.81f, 0); }