private void Awake() { if (Instance != null) { Debug.LogError("There is multiple instance of singleton GameManager"); return; } Instance = this; sw = SkeletonWrapper.Instance; him = HandInputManager.Instance; bim = BodyInputManager.Instance; gameMode = GlobalVariables.gameMode; TargetScore = targetScore; TargetDamage = targetDamage; TargetBonusScore = bonusTargetScore; TargetBonusTime = bonusTargetTime; TargetBonusLife = bonusTargetLife; SetupUI(); }
private void Awake() { if (Instance != null) { Debug.LogError("There is multiple instance of singleton GameManager"); return; } Instance = this; sw = SkeletonWrapper.Instance; him = HandInputManager.Instance; bim = BodyInputManager.Instance; gameMode = GlobalVariables.gameMode; TargetScore = targetScore; TargetDamage = targetDamage; TargetBonusScore = bonusTargetScore; TargetBonusTime = bonusTargetTime; TargetBonusLife = bonusTargetLife; SetupUI (); }
void Awake() { GO_KINECT_PREFAB = kinectPrefab; GO_HAND_INPUT_MANAGER = handInputManager; GO_BODY_INPUT_MANAGER = bodyInputManager; }