「Unityでゲームを作る際、キャラや武器のステータスをどう管理すればいいか分からない」 ハードコードすると変更が大変で、データ管理も難しくなってしまいます。この記事では、UnityのScriptableObjectを使って、キャラや武器などのステータスを外部データ ...
この記事は著者がYouTubeなどのサイトでunityを使って勉強してる時に起きたバグをメモがわりに書いたものを書き直して記事にしたものですので色々不自然なとかがあります。人によって開発環境とかも違うので参考までに、軽くみてください。 なんか ...
Standard Unity setups often lead to tightly coupled dependencies. Your Player.cs takes damage and needs to update the health bar, so it calls UIManager.Instance. Now your player is hard-coupled to ...
Standard Unity setups often lead to tightly coupled dependencies. Your Player.cs takes damage and needs to update the health bar, so it calls UIManager.Instance. Now your player is hard-coupled to ...