コード例 #1
0
    void Start()
    {
        // Copy our quad mesh
        quad = GetComponent <MeshFilter>().mesh;

        MapSetIcon(iconIndex);
        MapSetColor(iconColor);

        // Register icon with map
        FpsHudMapCamera.RegisterIcon(this);
    }
コード例 #2
0
 void OnDisable()
 {
     FpsHudMapCamera.UnregisterIcon(this);
 }
コード例 #3
0
 void OnDestroy()
 {
     FpsHudMapCamera.UnregisterIcon(this);
 }
コード例 #4
0
 void OnEnable()
 {
     FpsHudMapCamera.RegisterIcon(this);
 }
コード例 #5
0
 void Awake()
 {
     FpsHudMapCamera.RegisterIcon(this);
 }