示例#1
0
        public GridPainter(ClientIntegrationInstance client, ServerIntegrationInstance server)
        {
            _entityPainter = new EntityPainter(client, server);
            _decalPainter  = new DecalPainter(client, server);

            _cEntityManager = client.ResolveDependency <IEntityManager>();
            _cMapManager    = client.ResolveDependency <IMapManager>();

            _sEntityManager = server.ResolveDependency <IEntityManager>();
            _sMapManager    = server.ResolveDependency <IMapManager>();

            _entities = GetEntities();
            _decals   = GetDecals();
        }
示例#2
0
    void Awake()
    {
        materials = new List <Material>();

        if (Instance != null)
        {
            Debug.LogError("More than one Painter has been instanciated in this scene!");
        }
        Instance = this;

        if (PaintDecalPrefabs.Count == 0)
        {
            Debug.LogError("Missing Paint decals prefabs!");
        }

        paintDecals      = new Transform[PoolSize];
        currentPoolIndex = 0;
    }
示例#3
0
 private void OnEnable()
 {
     _target = (DecalPainter)target;
     color   = new Color();
 }