コード例 #1
0
        void Awake()
        {
            this.Log("Location initializing");

            //TODO refactor to factory
            if (MapPrefab)
            {
                var mapObject = Instantiate(MapPrefab, ContainingMap.transform.parent);
                AssociatedMap = mapObject.GetComponent <MapComponent>();
            }
        }
コード例 #2
0
 public MapEventArgs(MapComponent map)
 {
     Map = map;
 }