File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed
CrazyCar/Assets/Scripts/Game Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -136,22 +136,24 @@ private void Update() {
136
136
137
137
[ Obsolete ]
138
138
private void PlayConnectAnim ( ) {
139
- if ( xboxConnect == null ) return ;
140
- xboxConnect . gameObject . SetActiveFast ( true ) ;
141
- float time = 1 ;
142
- Util . DelayExecuteWithSecond ( time , ( ) => {
143
- xboxConnect . gameObject . SetActiveFast ( false ) ;
144
- } ) ;
139
+ if ( xboxConnect != null ) {
140
+ xboxConnect . gameObject . SetActiveFast ( true ) ;
141
+ float time = 1 ;
142
+ Util . DelayExecuteWithSecond ( time , ( ) => {
143
+ xboxConnect . gameObject . SetActiveFast ( false ) ;
144
+ } ) ;
145
+ }
145
146
}
146
147
147
148
[ Obsolete ]
148
149
private void PlayDisconnectAnim ( ) {
149
- if ( xboxDisconnect == null ) return ;
150
- xboxDisconnect . gameObject . SetActiveFast ( true ) ;
151
- float time = 1 ;
152
- Util . DelayExecuteWithSecond ( time , ( ) => {
153
- xboxDisconnect . gameObject . SetActiveFast ( false ) ;
154
- } ) ;
150
+ if ( xboxDisconnect != null ) {
151
+ xboxDisconnect . gameObject . SetActiveFast ( true ) ;
152
+ float time = 1 ;
153
+ Util . DelayExecuteWithSecond ( time , ( ) => {
154
+ xboxDisconnect . gameObject . SetActiveFast ( false ) ;
155
+ } ) ;
156
+ }
155
157
}
156
158
157
159
public IArchitecture GetArchitecture ( ) {
You can’t perform that action at this time.
0 commit comments