Ejemplo n.º 1
0
    void Awake()
    {
        if (_instance == null)
        {
            _instance = this;
        }

        PathVectors = new List <Vector3>();
    }
Ejemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        GameObject gm = GameObject.Find("Game_Manager");

        gameManager = gm.GetComponent <GameManager>();
        pbm         = gm.GetComponent <ProductionBuildingManager>();
        try{
            cgm = gm.GetComponent <City_Grid_Manager>();
            fgm = null;
        }catch
        {
            fgm = gm.GetComponent <Fight_Grid_Manager>();
            cgm = null;
        }
        Debug.Log("FASZ:" + gameObject.name);
    }
Ejemplo n.º 3
0
 void Start()
 {
     manager = Fight_Grid_Manager.Instance;
 }
Ejemplo n.º 4
0
 void Start()
 {
     fgm = Fight_Grid_Manager.Instance;
     gm  = GameManager.Instance;
     StartCoroutine(First(timeToFirstSpawn));
 }