コード例 #1
0
    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>();
    }
コード例 #2
0
    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);
    }
コード例 #3
0
 private void Awake()
 {
     _selectSpaceshipManager = GetComponent <SelectSpaceshipManager>();
     _selectedSeekers        = new List <Seeker>();
 }