コード例 #1
0
 //
 // Moving
 //
 public void SetTarget(NodeController node)
 {
     target = node;
     gameObject.transform.position = target.BuildPosition();
 }
コード例 #2
0
    // Building
    private void SetTower(TowerBlueprint towerBlueprint)
    {
        GameObject tower = (GameObject)Instantiate(towerBlueprint.prefab, selectedNode.BuildPosition(), Quaternion.identity);

        selectedNode.SetTower(tower, towerBlueprint.title);
    }