Exemple #1
0
 void mouseover_nothing()
 {
     if (mouseoverindex != -1)
     {
         mouseoverindex = -1;
     }
     GameDad.selectedStar         = -1;
     GameDad.selectedStarLocation = new Vector3(0, 0, 0);
     if (GameDad.starmouseover_hook != null)
     {
         GameDad.starmouseover_hook(-1, new Vector3(0, 0, 0));
     }
 }
Exemple #2
0
    void mouseover_star(int index)
    {
        if (index < 0 || index >= particles.Length)
        {
            throw new System.Exception("hey index was invalid");
        }
        int starix = particle_to_first_star[index];

        if (index != star_to_particle_range[starix].start)
        {
            throw new System.Exception("hey star was not the first star in group");
        }
        mouseoverindex = index;
        Vector3 loca = particlepos(mouseoverindex);

        GameDad.selectedStar         = starix;
        GameDad.selectedStarLocation = loca;
        if (GameDad.starmouseover_hook != null)
        {
            GameDad.starmouseover_hook(starix,
                                       loca);
        }
    }