コード例 #1
0
    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();
    }
コード例 #2
0
    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 ();
    }
コード例 #3
0
 void Awake()
 {
     GO_KINECT_PREFAB = kinectPrefab;
     GO_HAND_INPUT_MANAGER = handInputManager;
     GO_BODY_INPUT_MANAGER = bodyInputManager;
 }
コード例 #4
0
 void Awake()
 {
     GO_KINECT_PREFAB      = kinectPrefab;
     GO_HAND_INPUT_MANAGER = handInputManager;
     GO_BODY_INPUT_MANAGER = bodyInputManager;
 }