@@ -141,19 +141,19 @@ public class DirAssgn
141
141
public int [ ] SoundID { get { return this . soundID ; } set { this . soundID = value ; } }
142
142
143
143
// Constructor
144
- public DirAssgn ( string callback , Pinky pinky , int soundID )
145
- {
146
- this . callback [ ( int ) pinky ] = callback ;
147
- this . soundID [ ( int ) pinky ] = soundID ;
148
- }
149
-
150
144
public DirAssgn ( ) { }
151
145
152
146
// Method
153
147
public string GetCallback ( Pinky pinky ) { return this . callback [ ( int ) pinky ] ; }
154
148
public int GetSoundID ( Pinky pinky ) { return this . soundID [ ( int ) pinky ] ; }
155
149
156
- public void UnAssgin ( Pinky pinky )
150
+ public void Assign ( string callback , Pinky pinky , int soundID )
151
+ {
152
+ this . callback [ ( int ) pinky ] = callback ;
153
+ this . soundID [ ( int ) pinky ] = soundID ;
154
+ }
155
+
156
+ public void UnAssign ( Pinky pinky )
157
157
{
158
158
this . callback [ ( int ) pinky ] = "SimDoNothing" ;
159
159
this . soundID [ ( int ) pinky ] = 0 ;
@@ -164,7 +164,7 @@ public void Assign(int GetPointofView, string callback, Pinky pinky, int soundID
164
164
{
165
165
if ( GetPointofView > 7 )
166
166
GetPointofView = GetPointofView / 4500 ;
167
- this . direction [ GetPointofView ] = new DirAssgn ( callback , pinky , soundID ) ;
167
+ this . direction [ GetPointofView ] . Assign ( callback , pinky , soundID ) ;
168
168
}
169
169
170
170
public string GetDirection ( int GetPointOfView )
@@ -248,9 +248,9 @@ public void UnassigntargetCallback(string callbackname)
248
248
for ( int ii = 0 ; ii < this . pov [ i ] . direction . Length ; ii ++ )
249
249
{
250
250
if ( this . pov [ i ] . direction [ ii ] . GetCallback ( Pinky . UnShift ) == callbackname )
251
- this . pov [ i ] . direction [ ii ] . UnAssgin ( Pinky . UnShift ) ;
251
+ this . pov [ i ] . direction [ ii ] . UnAssign ( Pinky . UnShift ) ;
252
252
if ( this . pov [ i ] . direction [ ii ] . GetCallback ( Pinky . Shift ) == callbackname )
253
- this . pov [ i ] . direction [ ii ] . UnAssgin ( Pinky . Shift ) ;
253
+ this . pov [ i ] . direction [ ii ] . UnAssign ( Pinky . Shift ) ;
254
254
}
255
255
}
256
256
0 commit comments