Example #1
0
        /// Character default draw method
        public virtual void UpdateDraw()
        {
            if (this.graphics == null)
            {
                return;
            }

            if (this._mesh == null)
            {
                this._mesh = MeshPool.GetPlaneMesh(this.def.graphics.size);
            }

            Graphics.DrawMesh(
                this._mesh,
                this.movement.visualPosition,
                Quaternion.identity,
                this.graphics.material,
                0
                );
        }
Example #2
0
    /// Character default draw method
    public virtual void UpdateDraw()
    {
        if (material == null)
        {
            return;
        }

        if (_mesh == null)
        {
            _mesh = MeshPool.GetPlaneMesh(size);
        }

        Graphics.DrawMesh(
            _mesh,
            movement.visualPosition,
            Quaternion.identity,
            material,
            0
            );
    }