|
|
@@ -42,11 +42,19 @@ public class ArmBow : MonoBehaviour
|
|
|
Quaternion[] cameraRotations = new Quaternion[6];
|
|
|
int cameraRotationHasRecordCount = 0;
|
|
|
|
|
|
- public static ArmBow ins;
|
|
|
+ private static ArmBow _ins;
|
|
|
+ public static ArmBow ins {
|
|
|
+ get {
|
|
|
+ if (!_ins) {
|
|
|
+ _ins = GameObject.FindObjectOfType<ArmBow>();
|
|
|
+ }
|
|
|
+ return _ins;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
void Awake()
|
|
|
{
|
|
|
- ins = this;
|
|
|
+ _ins = this;
|
|
|
//initdata
|
|
|
int currentShootLevel = LoginMgr.myUserInfo.shootLevel;
|
|
|
shootBackTime = new int[]{0, 2, 5}[currentShootLevel];
|