Exemplo n.º 1
0
        // Use this for initialization
        //void Start()
        public BuildingsManager()
        {
            //player = GetComponent<Player>();
            //inputs = etComponent<UserInput>();
            grid = GameObject.FindWithTag("GameController").GetComponent<ConstructionGrid>();
            cursor = CursorManager.Instance;
            // alpha components for the colors
            red.a = 0.5f;
            green.a = 0.5f;
            InitBuildingStruct();

            notifier = GameObject.FindWithTag("GameController").GetComponent<EventsNotifier>();

        }
Exemplo n.º 2
0
 private void Awake()
 {
     Instance = this;
 }