コード例 #1
0
    void Awake()
    {
        capturable            = GetComponentInChildren <Capturable>();
        setMaterialProperties = GetComponent <SetMaterialProperties>();
        selectable            = GetComponentInChildren <Selectable>();
        uiController          = UIController.Instance;

        CurrentShip = ShipDataset[0];

        if (!StartCaptured)
        {
            Team = 2;
        }

        if (Team == 2)
        {
            selectable.gameObject.SetActive(false);
        }

        capturable.Captured       += OnCaptured;
        uiController.StoreUpdated += OnStoreUpdated;
    }
コード例 #2
0
 void OnShipProductionComponentClicked(SOShip shipData)
 {
     selectedNode.CurrentShip = shipData;
 }