private void Awake() { Instance = this; //_photonView = PhotonView.Get(this); //_currentSpaceshipIndex = 0; _mySpaceships = new List <GameObject>(); _myAttackSpaceships = new List <GameObject>(); _myDefenceSpaceships = new List <GameObject>(); _myMiningSpaceships = new List <GameObject>(); _selectSpaceshipManager = GetComponent <SelectSpaceshipManager>(); _pathfinder = GameObject.Find("Pathfinder2D").GetComponent <FlowPathfinding.Pathfinder>(); _audioSource = GetComponent <AudioSource>(); }
private void Awake() { Instance = this; _camera = Camera.main; _isCameraNotNull = _camera != null; _spaceshipManager = GetComponentInParent <SpaceshipManager>(); _spaceships = new List <Spaceship>(); _selectedSpaceships = new List <Spaceship>(); _selectedSeekers = new List <Seeker>(); _active = true; AutomationButton.SetActive(false); DeleteButton.SetActive(false); }
private void Awake() { _selectSpaceshipManager = GetComponent <SelectSpaceshipManager>(); _selectedSeekers = new List <Seeker>(); }