Exemplo n.º 1
0
    private void Start()
    {
        var gameObjectRender = MinimapIcon.GetComponent <Renderer>();

        gameObjectRender.material.SetColor("_Color", BaseController.Owner.PlayerColor);
        BaseController.AddResourceCollector(this);
    }