コード例 #1
0
    // Start is called before the first frame update

    private void Awake()
    {
        pathFinder     = GetComponent <PathfinderAStar>();
        pathRenderer   = GetComponent <PathRenderer>();
        pathVisualizer = GetComponent <PathVisualizer>();
        unitHandler    = GameObject.FindObjectOfType <CurrentUnitHandler>();
    }
コード例 #2
0
    //This are different. You can focus on any unit, assuming it is the players turn. The only unit who can take action however is the activeturnunit.


    private void Awake()
    {
        unitHandler  = GetComponent <CurrentUnitHandler>();
        unitCarousel = GameObject.FindObjectOfType <UI_UnitCarousel>();
        CollectUnits();
    }
コード例 #3
0
 private void Awake()
 {
     unitHandler = GetComponent <CurrentUnitHandler>();
 }