2025-04-16 19:57:54 -04:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
<!--[if IE]><![endif]-->
|
|
|
|
|
|
<html>
|
|
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
|
|
|
<title>Namespace Game
|
|
|
|
|
|
| Example Unity documentation </title>
|
|
|
|
|
|
<meta name="viewport" content="width=device-width">
|
|
|
|
|
|
<meta name="title" content="Namespace Game
|
|
|
|
|
|
| Example Unity documentation ">
|
|
|
|
|
|
<meta name="generator" content="docfx ">
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="shortcut icon" href="../favicon.ico">
|
|
|
|
|
|
<link rel="stylesheet" href="../styles/docfx.vendor.css">
|
|
|
|
|
|
<link rel="stylesheet" href="../styles/docfx.css">
|
|
|
|
|
|
<link rel="stylesheet" href="../styles/main.css">
|
|
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
|
|
|
|
|
|
<meta property="docfx:navrel" content="../toc.html">
|
|
|
|
|
|
<meta property="docfx:tocrel" content="toc.html">
|
|
|
|
|
|
|
|
|
|
|
|
<meta property="docfx:rel" content="../">
|
|
|
|
|
|
|
|
|
|
|
|
</head> <body data-spy="scroll" data-target="#affix" data-offset="120">
|
|
|
|
|
|
<div id="wrapper">
|
|
|
|
|
|
<header>
|
|
|
|
|
|
|
|
|
|
|
|
<nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
|
<div class="navbar-header">
|
|
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
|
|
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
|
|
<a class="navbar-brand" href="../index.html">
|
|
|
|
|
|
<img id="logo" class="svg" src="../logo.svg" alt="">
|
|
|
|
|
|
</a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbar">
|
|
|
|
|
|
<form class="navbar-form navbar-right" role="search" id="search">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="subnav navbar navbar-default">
|
|
|
|
|
|
<div class="container hide-when-search" id="breadcrumb">
|
|
|
|
|
|
<ul class="breadcrumb">
|
|
|
|
|
|
<li></li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</header>
|
|
|
|
|
|
<div class="container body-content">
|
|
|
|
|
|
|
|
|
|
|
|
<div id="search-results">
|
|
|
|
|
|
<div class="search-list">Search Results for <span></span></div>
|
|
|
|
|
|
<div class="sr-items">
|
|
|
|
|
|
<p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div role="main" class="container body-content hide-when-search">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="sidenav hide-when-search">
|
|
|
|
|
|
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
|
|
|
|
|
|
<div class="sidetoggle collapse" id="sidetoggle">
|
|
|
|
|
|
<div id="sidetoc"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="article row grid-right">
|
|
|
|
|
|
<div class="col-md-10">
|
|
|
|
|
|
<article class="content wrap" id="_content" data-uid="Game">
|
|
|
|
|
|
|
|
|
|
|
|
<h1 id="Game" data-uid="Game" class="text-break">Namespace Game
|
|
|
|
|
|
</h1>
|
|
|
|
|
|
<div class="markdown level0 summary"></div>
|
|
|
|
|
|
<div class="markdown level0 conceptual"></div>
|
|
|
|
|
|
<div class="markdown level0 remarks"></div>
|
|
|
|
|
|
<h3 id="classes">Classes
|
|
|
|
|
|
</h3>
|
|
|
|
|
|
<h4><a class="xref" href="Game.DayNightCycle.html">DayNightCycle</a></h4>
|
2025-04-19 12:59:07 -04:00
|
|
|
|
<section><p>Manages the day-night cycle by transitioning between different sky and cloud sprites.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.EventSystemizer.html">EventSystemizer</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class makes sure there is only one EventSystem in the game at any time.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.FallPlatform.html">FallPlatform</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class controls platforms that fall when touched by a player or another platform.
|
|
|
|
|
|
The platform will fall after a delay and then reset to its original position.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.GameManager.html">GameManager</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class controls the main game logic, like starting the game, keeping track of players,
|
|
|
|
|
|
handling game modes, and deciding when the game ends.</p>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
</section>
|
|
|
|
|
|
<h4><a class="xref" href="Game.GameManagerHelper.html">GameManagerHelper</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class helps manage positions for the GameManager during development.
|
|
|
|
|
|
It allows adding hat spawn positions and player spawn positions directly in the editor.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.GameTimer.html">GameTimer</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class manages the game's countdown timer.
|
|
|
|
|
|
It starts, updates, and stops the timer, and ends the game when time runs out.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.HatRespawn.html">HatRespawn</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class manages the behavior of the hat in the game, including its respawn logic.
|
|
|
|
|
|
The hat can be picked up, dropped, and respawned after a certain amount of time.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.HealthBarManager.html">HealthBarManager</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class manages the health bars for all players in the game.
|
|
|
|
|
|
It creates, updates, and removes health bars as needed.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.HubManager.html">HubManager</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class manages the hub area of the game, including loading and unloading game scenes,
|
|
|
|
|
|
controlling the hub camera, and managing game buttons.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.InfiniteScroll.html">InfiniteScroll</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class handles the infinite scrolling effect for the background.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.LeaderboardManager.html">LeaderboardManager</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class manages the leaderboard, including initializing player icons,
|
|
|
|
|
|
updating player positions, and displaying hold times.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.LifeDisplayManager.html">LifeDisplayManager</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class manages the display of player lives, including creating life icons
|
|
|
|
|
|
and updating them based on the player's remaining lives.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.MapSelect.html">MapSelect</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class manages the map selection process by setting the selected map
|
|
|
|
|
|
based on the active toggle in the toggle group.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.ModeSelect.html">ModeSelect</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class manages the game mode selection process by setting the game mode
|
|
|
|
|
|
based on the active toggle in the toggle group.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.MovingPlatform.html">MovingPlatform</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class controls a platform that moves between specified points in a loop.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.ObjectVisibility.html">ObjectVisibility</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class controls the visibility of an object based on the current game mode.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.ObstacleCourse.html">ObstacleCourse</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class handles the logic for detecting when a player completes the obstacle course.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.PlayerCardCreator.html">PlayerCardCreator</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class is used to create cards for players when they join the game.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.PlayerJoinCard.html">PlayerJoinCard</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class represents a player join card, displaying the player's number
|
|
|
|
|
|
and preview in the game lobby.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.RespawnOnTriggerEnter.html">RespawnOnTriggerEnter</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class handles respawning objects when they collide with a trigger tagged with a specific value.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.TerribleHealthBarScript.html">TerribleHealthBarScript</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>This class manages the health bar visuals for a player, including updating
|
|
|
|
|
|
the health bar's size, position, and color based on the player's current health.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h4><a class="xref" href="Game.WinScreen.html">WinScreen</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>Manages the win screen display for the game.
|
|
|
|
|
|
Displays the winning player's information and triggers the win screen animation.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
<h3 id="enums">Enums
|
|
|
|
|
|
</h3>
|
|
|
|
|
|
<h4><a class="xref" href="Game.GameManager.GameMode.html">GameManager.GameMode</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>The different game modes players can choose from.</p>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
</section>
|
|
|
|
|
|
<h3 id="delegates">Delegates
|
|
|
|
|
|
</h3>
|
|
|
|
|
|
<h4><a class="xref" href="Game.GameManager.GameEvent.html">GameManager.GameEvent</a></h4>
|
2025-04-18 20:11:19 -04:00
|
|
|
|
<section><p>A type of event that happens during the game, like when it starts or ends.</p>
|
|
|
|
|
|
</section>
|
2025-04-16 19:57:54 -04:00
|
|
|
|
</article>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="hidden-sm col-md-2" role="complementary">
|
|
|
|
|
|
<div class="sideaffix">
|
|
|
|
|
|
<div class="contribution">
|
|
|
|
|
|
<ul class="nav">
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
|
|
|
|
|
|
<h5>In This Article</h5>
|
|
|
|
|
|
<div></div>
|
|
|
|
|
|
</nav>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
|
|
<div class="grad-bottom"></div>
|
|
|
|
|
|
<div class="footer">
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
|
<span class="pull-right">
|
|
|
|
|
|
<a href="#top">Back to top</a>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
Example Unity documentation footer
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</footer>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="../styles/docfx.vendor.js"></script>
|
|
|
|
|
|
<script type="text/javascript" src="../styles/docfx.js"></script>
|
|
|
|
|
|
<script type="text/javascript" src="../styles/main.js"></script>
|
|
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|