void Start() { // Copy our quad mesh quad = GetComponent <MeshFilter>().mesh; MapSetIcon(iconIndex); MapSetColor(iconColor); // Register icon with map FpsHudMapCamera.RegisterIcon(this); }
void OnDisable() { FpsHudMapCamera.UnregisterIcon(this); }
void OnDestroy() { FpsHudMapCamera.UnregisterIcon(this); }
void OnEnable() { FpsHudMapCamera.RegisterIcon(this); }
void Awake() { FpsHudMapCamera.RegisterIcon(this); }