hi, im making a multiplayer game and i want to make it so in the minimap each player see’s him self as a different color than the other player (or atleast sees only himself in the minimap).
i have attached to the player prefab an arrow that only the minimap camera can see, and to this arrow i attached the following script:
using UnityEngine;
using UnityEngine.Networking;
public class arrow : NetworkBehaviour {
void Update()
{
if (isLocalPlayer)
{
Material material = new Material(Shader.Find("Standard"));
}
}
}
the script doesnt work and when there are multiple players connected each player sees all the arrows in his minimap in the same color.
please help me and let me know what i did wrong, keep in mind that my english and programming arent very good so if you could change the script yourself and give me a working version itll be great, altho every help will be appreciated, thanks.