예제 #1
0
파일: Game.cs 프로젝트: yazici/DonkeyKong
    protected override void SetupSystems()
    {
        pickups = PickupManager.Setup(settings.pickups);

        cameraManager = FindObjectOfType <CameraManager>();

        if (cameraManager == null)
        {
            cameraManager = Instantiate(prefabs.camera);
        }

        level = FindObjectOfType <Level>();

        Dbg.LogErrorIf(level == null, "No level found");

        if (level != null)
        {
            SetupWithLevel(level);
        }

        noInputTimer = settings.reloadSceneTime;
    }
예제 #2
0
 protected override void AtAwake()
 {
     Dbg.LogErrorIf(effect == null, this, "{0} was missing an effect", this);
 }