Bernard Laptop 5 years ago
parent
commit
b244849293
14 changed files with 163 additions and 81 deletions
  1. +6
    -7
      Assets/Scenes/LobbyScene.unity
  2. +4
    -0
      Assets/Scenes/MainScene.unity
  3. +2
    -0
      Assets/Scipts/Multiplayer/Client/ClientLoginManager.cs
  4. +1
    -1
      Assets/Scipts/Multiplayer/Client/PlayersManager.cs
  5. +1
    -1
      Assets/Scipts/Multiplayer/Core/LoginProtocol.cs
  6. +24
    -0
      Assets/Scipts/Multiplayer/Core/PlayerProtocol.cs
  7. +14
    -0
      Assets/Scipts/Multiplayer/Server/LoginManager.cs
  8. +40
    -1
      Assets/Scipts/UI/LobbyUIController.cs
  9. +1
    -1
      Assets/Scipts/Utility/Singleton.cs
  10. +17
    -17
      Assets/VeggieSpots/carrot.prefab
  11. +17
    -17
      Assets/VeggieSpots/mushroom_Veggy.prefab
  12. +17
    -17
      Assets/VeggieSpots/potatoe_Veggie.prefab
  13. +17
    -17
      Assets/VeggieSpots/pumkin_Veggy.prefab
  14. +2
    -2
      ProjectSettings/ProjectSettings.asset

+ 6
- 7
Assets/Scenes/LobbyScene.unity View File

@ -220,7 +220,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 405724f17a9fdf7498f87dfdb5dbcb9e, type: 3} m_Script: {fileID: 11500000, guid: 405724f17a9fdf7498f87dfdb5dbcb9e, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
playerMan: {fileID: 1535509335}
StartGame: {fileID: 1007511399}
--- !u!1 &1007511397 --- !u!1 &1007511397
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -278,10 +278,10 @@ MonoBehaviour:
m_SelectOnRight: {fileID: 0} m_SelectOnRight: {fileID: 0}
m_Transition: 1 m_Transition: 1
m_Colors: m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_NormalColor: {r: 0.0072332197, g: 0.509434, b: 0, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_DisabledColor: {r: 1, g: 0, b: 0, a: 1}
m_ColorMultiplier: 1 m_ColorMultiplier: 1
m_FadeDuration: 0.1 m_FadeDuration: 0.1
m_SpriteState: m_SpriteState:
@ -293,7 +293,7 @@ MonoBehaviour:
m_HighlightedTrigger: Highlighted m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed m_PressedTrigger: Pressed
m_DisabledTrigger: Disabled m_DisabledTrigger: Disabled
m_Interactable: 1
m_Interactable: 0
m_TargetGraphic: {fileID: 1007511400} m_TargetGraphic: {fileID: 1007511400}
m_OnClick: m_OnClick:
m_PersistentCalls: m_PersistentCalls:
@ -357,7 +357,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_AspectMode: 0 m_AspectMode: 0
m_AspectRatio: 4.2877293
m_AspectRatio: 5.338957
--- !u!1 &1535509334 --- !u!1 &1535509334
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -391,7 +391,6 @@ MonoBehaviour:
type: 2} type: 2}
RemotePlayerPrefab: {fileID: 1899238032005644, guid: 35b69a93d1dd9c24fbf2ba57dfc4aafb, RemotePlayerPrefab: {fileID: 1899238032005644, guid: 35b69a93d1dd9c24fbf2ba57dfc4aafb,
type: 2} type: 2}
LocalPlayer: {fileID: 0}
--- !u!4 &1535509336 --- !u!4 &1535509336
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -733,7 +732,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 70.39752, y: 0}
m_SizeDelta: {x: 0, y: 92.30072}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1973300969 --- !u!114 &1973300969
MonoBehaviour: MonoBehaviour:

+ 4
- 0
Assets/Scenes/MainScene.unity View File

@ -5657,6 +5657,10 @@ Prefab:
propertyPath: m_ramModuleState propertyPath: m_ramModuleState
value: 2 value: 2
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 177638, guid: 0abab5bb77339e4428787a870eb31bd3, type: 2}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0abab5bb77339e4428787a870eb31bd3, type: 2} m_SourcePrefab: {fileID: 100100000, guid: 0abab5bb77339e4428787a870eb31bd3, type: 2}
m_IsPrefabAsset: 0 m_IsPrefabAsset: 0

+ 2
- 0
Assets/Scipts/Multiplayer/Client/ClientLoginManager.cs View File

@ -80,6 +80,8 @@ namespace Multiplayer
Random.InitState((int)longMsg.Long); Random.InitState((int)longMsg.Long);
} }
} }

+ 1
- 1
Assets/Scipts/Multiplayer/Client/PlayersManager.cs View File

@ -49,7 +49,7 @@ namespace Multiplayer
public void DestroyPlayers() public void DestroyPlayers()
{ {
foreach (PlayerData player in Players.Values) foreach (PlayerData player in Players.Values)
if (player.gameObject != null)
if (player.Player != null)
Destroy(player.gameObject); Destroy(player.gameObject);
} }

+ 1
- 1
Assets/Scipts/Multiplayer/Core/LoginProtocol.cs View File

@ -13,6 +13,6 @@ namespace Multiplayer
public const short Seed = 304; public const short Seed = 304;
public const short RemotePlayerJoin = 305; public const short RemotePlayerJoin = 305;
public const short RemotePlayerExit = 306 ; public const short RemotePlayerExit = 306 ;
public const short QueryGameRunning = 307;
} }
} }

+ 24
- 0
Assets/Scipts/Multiplayer/Core/PlayerProtocol.cs View File

@ -67,6 +67,30 @@ namespace Multiplayer
} }
} }
public class BoolMsg : PlayerMsg
{
public bool boolean;
public BoolMsg() { }
public BoolMsg(byte PlayerID, bool boolean) : base(PlayerID)
{
this.boolean = boolean;
}
public override void Serialize(NetworkWriter writer)
{
base.Serialize(writer);
writer.Write(boolean);
}
public override void Deserialize(NetworkReader reader)
{
base.Deserialize(reader);
boolean = reader.ReadBoolean();
}
}
public class QuaternionMsg : PlayerMsg public class QuaternionMsg : PlayerMsg
{ {

+ 14
- 0
Assets/Scipts/Multiplayer/Server/LoginManager.cs View File

@ -12,6 +12,10 @@ namespace Multiplayer
private ServerManager ServerManager; private ServerManager ServerManager;
private bool isGameRunning = false;
public LoginManager(ServerManager ServerManager) public LoginManager(ServerManager ServerManager)
{ {
this.ServerManager = ServerManager; this.ServerManager = ServerManager;
@ -27,6 +31,7 @@ namespace Multiplayer
ServerManager.Server.RegisterHandler(PlayerMsgID.Lobby, GoToLobby); ServerManager.Server.RegisterHandler(PlayerMsgID.Lobby, GoToLobby);
ServerManager.Server.RegisterHandler(PlayerMsgID.GameWin, OnGameWin); ServerManager.Server.RegisterHandler(PlayerMsgID.GameWin, OnGameWin);
ServerManager.Server.RegisterHandler(PlayerMsgID.GameOver, OnGameOver); ServerManager.Server.RegisterHandler(PlayerMsgID.GameOver, OnGameOver);
ServerManager.Server.RegisterHandler(LoginMsgID.QueryGameRunning, QueryGameState);
} }
@ -94,6 +99,8 @@ namespace Multiplayer
private void StartGame() private void StartGame()
{ {
isGameRunning = true;
foreach (Player player in ServerManager.AllPlayers.Values) foreach (Player player in ServerManager.AllPlayers.Values)
{ {
player.Connection.Send(LoginMsgID.Seed, new longMsg(player.ID, ServerManager.Seed)); player.Connection.Send(LoginMsgID.Seed, new longMsg(player.ID, ServerManager.Seed));
@ -125,9 +132,16 @@ namespace Multiplayer
private void GoToLobby(NetworkMessage msg) private void GoToLobby(NetworkMessage msg)
{ {
isGameRunning = false;
foreach(Player player in ServerManager.AllPlayers.Values) foreach(Player player in ServerManager.AllPlayers.Values)
player.Connection.Send(PlayerMsgID.Lobby, new PlayerMsg(player.ID)); player.Connection.Send(PlayerMsgID.Lobby, new PlayerMsg(player.ID));
} }
private void QueryGameState(NetworkMessage msg)
{
msg.conn.Send(LoginMsgID.QueryGameRunning, new BoolMsg((byte)msg.conn.connectionId, isGameRunning));
}
} }
} }

+ 40
- 1
Assets/Scipts/UI/LobbyUIController.cs View File

@ -1,16 +1,55 @@
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.Networking;
using Multiplayer;
using UnityEngine.UI;
public class LobbyUIController : MonoBehaviour { public class LobbyUIController : MonoBehaviour {
public Button StartGame;
private float lastTime;
private void Start() private void Start()
{ {
Multiplayer.PlayersManager.Instance.LocalPlayer.gameObject.GetComponent<LocalPlayer>().heldVeggie = null;
} }
private void OnEnable()
{
Multiplayer.ClientManager.Instance.Client.RegisterHandler(LoginMsgID.QueryGameRunning, isGameRunning);
}
private void OnDisable()
{
ClientManager.Instance.Client.UnregisterHandler(LoginMsgID.QueryGameRunning);
}
public void Update()
{
if (Time.time - lastTime > 1)
{
ClientManager.Instance.SendMessage(LoginMsgID.QueryGameRunning);
lastTime = Time.time;
}
}
public void OnClickStartGame() public void OnClickStartGame()
{ {
Multiplayer.ClientManager.Instance.SendMessage(Multiplayer.PlayerMsgID.GameStart, new Multiplayer.PlayerMsg(Multiplayer.ClientManager.Instance.ID)); Multiplayer.ClientManager.Instance.SendMessage(Multiplayer.PlayerMsgID.GameStart, new Multiplayer.PlayerMsg(Multiplayer.ClientManager.Instance.ID));
} }
public void isGameRunning(NetworkMessage msg)
{
BoolMsg boolMsg;
if (!Multiplayer.Utility.ReadMessage<BoolMsg>(msg, out boolMsg))
return;
StartGame.interactable = !boolMsg.boolean;
}
} }

+ 1
- 1
Assets/Scipts/Utility/Singleton.cs View File

@ -20,7 +20,7 @@ public class MonoSingleton : MonoBehaviour where T : MonoSingleton
private void SetAsSingleton() private void SetAsSingleton()
{ {
if (Instance != null && Instance != this) if (Instance != null && Instance != this)
Destroy(this);
Destroy(this.gameObject);
else else
Instance = (T)this; Instance = (T)this;

+ 17
- 17
Assets/VeggieSpots/carrot.prefab View File

@ -8,15 +8,15 @@ Prefab:
m_TransformParent: {fileID: 0} m_TransformParent: {fileID: 0}
m_Modifications: [] m_Modifications: []
m_RemovedComponents: [] m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_SourcePrefab: {fileID: 0}
m_RootGameObject: {fileID: 1191978790607594} m_RootGameObject: {fileID: 1191978790607594}
m_IsPrefabParent: 1
m_IsPrefabAsset: 1
--- !u!1 &1045437373970508 --- !u!1 &1045437373970508
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
serializedVersion: 5
serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 4479397188757598} - component: {fileID: 4479397188757598}
- component: {fileID: 33431294167763046} - component: {fileID: 33431294167763046}
@ -31,9 +31,9 @@ GameObject:
--- !u!1 &1191978790607594 --- !u!1 &1191978790607594
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
serializedVersion: 5
serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 4993448706942266} - component: {fileID: 4993448706942266}
- component: {fileID: 33868186554608578} - component: {fileID: 33868186554608578}
@ -51,7 +51,7 @@ GameObject:
--- !u!4 &4479397188757598 --- !u!4 &4479397188757598
Transform: Transform:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1045437373970508} m_GameObject: {fileID: 1045437373970508}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
@ -64,7 +64,7 @@ Transform:
--- !u!4 &4993448706942266 --- !u!4 &4993448706942266
Transform: Transform:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1191978790607594} m_GameObject: {fileID: 1191978790607594}
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068} m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
@ -78,7 +78,7 @@ Transform:
--- !u!23 &23159349111314626 --- !u!23 &23159349111314626
MeshRenderer: MeshRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1045437373970508} m_GameObject: {fileID: 1045437373970508}
m_Enabled: 1 m_Enabled: 1
@ -113,7 +113,7 @@ MeshRenderer:
--- !u!23 &23790350115728832 --- !u!23 &23790350115728832
MeshRenderer: MeshRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1191978790607594} m_GameObject: {fileID: 1191978790607594}
m_Enabled: 1 m_Enabled: 1
@ -148,36 +148,36 @@ MeshRenderer:
--- !u!33 &33431294167763046 --- !u!33 &33431294167763046
MeshFilter: MeshFilter:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1045437373970508} m_GameObject: {fileID: 1045437373970508}
m_Mesh: {fileID: 4300000, guid: 74c23f5ead6217945889193b7c9fecb7, type: 3} m_Mesh: {fileID: 4300000, guid: 74c23f5ead6217945889193b7c9fecb7, type: 3}
--- !u!33 &33868186554608578 --- !u!33 &33868186554608578
MeshFilter: MeshFilter:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1191978790607594} m_GameObject: {fileID: 1191978790607594}
m_Mesh: {fileID: 4300000, guid: 33c36bdc0d9cadd4d9ae6b882dd21f65, type: 3} m_Mesh: {fileID: 4300000, guid: 33c36bdc0d9cadd4d9ae6b882dd21f65, type: 3}
--- !u!54 &54232200638652524 --- !u!54 &54232200638652524
Rigidbody: Rigidbody:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1191978790607594} m_GameObject: {fileID: 1191978790607594}
serializedVersion: 2 serializedVersion: 2
m_Mass: 1 m_Mass: 1
m_Drag: 0 m_Drag: 0
m_AngularDrag: 0.05 m_AngularDrag: 0.05
m_UseGravity: 1
m_IsKinematic: 0
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0 m_Interpolate: 0
m_Constraints: 122 m_Constraints: 122
m_CollisionDetection: 0 m_CollisionDetection: 0
--- !u!65 &65818395335241826 --- !u!65 &65818395335241826
BoxCollider: BoxCollider:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1191978790607594} m_GameObject: {fileID: 1191978790607594}
m_Material: {fileID: 0} m_Material: {fileID: 0}
@ -189,7 +189,7 @@ BoxCollider:
--- !u!114 &114440221015722654 --- !u!114 &114440221015722654
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1191978790607594} m_GameObject: {fileID: 1191978790607594}
m_Enabled: 1 m_Enabled: 1

+ 17
- 17
Assets/VeggieSpots/mushroom_Veggy.prefab View File

@ -8,15 +8,15 @@ Prefab:
m_TransformParent: {fileID: 0} m_TransformParent: {fileID: 0}
m_Modifications: [] m_Modifications: []
m_RemovedComponents: [] m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_SourcePrefab: {fileID: 0}
m_RootGameObject: {fileID: 1625714886565098} m_RootGameObject: {fileID: 1625714886565098}
m_IsPrefabParent: 1
m_IsPrefabAsset: 1
--- !u!1 &1625714886565098 --- !u!1 &1625714886565098
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
serializedVersion: 5
serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 4629151296692676} - component: {fileID: 4629151296692676}
- component: {fileID: 33726525974446366} - component: {fileID: 33726525974446366}
@ -34,9 +34,9 @@ GameObject:
--- !u!1 &1984510166184500 --- !u!1 &1984510166184500
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
serializedVersion: 5
serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 4952006183326854} - component: {fileID: 4952006183326854}
- component: {fileID: 33169155369522874} - component: {fileID: 33169155369522874}
@ -51,7 +51,7 @@ GameObject:
--- !u!4 &4629151296692676 --- !u!4 &4629151296692676
Transform: Transform:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1625714886565098} m_GameObject: {fileID: 1625714886565098}
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068} m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
@ -65,7 +65,7 @@ Transform:
--- !u!4 &4952006183326854 --- !u!4 &4952006183326854
Transform: Transform:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1984510166184500} m_GameObject: {fileID: 1984510166184500}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
@ -78,7 +78,7 @@ Transform:
--- !u!23 &23076227237857966 --- !u!23 &23076227237857966
MeshRenderer: MeshRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1625714886565098} m_GameObject: {fileID: 1625714886565098}
m_Enabled: 1 m_Enabled: 1
@ -113,7 +113,7 @@ MeshRenderer:
--- !u!23 &23125677036450212 --- !u!23 &23125677036450212
MeshRenderer: MeshRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1984510166184500} m_GameObject: {fileID: 1984510166184500}
m_Enabled: 1 m_Enabled: 1
@ -148,36 +148,36 @@ MeshRenderer:
--- !u!33 &33169155369522874 --- !u!33 &33169155369522874
MeshFilter: MeshFilter:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1984510166184500} m_GameObject: {fileID: 1984510166184500}
m_Mesh: {fileID: 4300000, guid: 74c23f5ead6217945889193b7c9fecb7, type: 3} m_Mesh: {fileID: 4300000, guid: 74c23f5ead6217945889193b7c9fecb7, type: 3}
--- !u!33 &33726525974446366 --- !u!33 &33726525974446366
MeshFilter: MeshFilter:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1625714886565098} m_GameObject: {fileID: 1625714886565098}
m_Mesh: {fileID: 4300000, guid: 5a4501f77ac5ff44280caba31b3acc35, type: 3} m_Mesh: {fileID: 4300000, guid: 5a4501f77ac5ff44280caba31b3acc35, type: 3}
--- !u!54 &54413837867327920 --- !u!54 &54413837867327920
Rigidbody: Rigidbody:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1625714886565098} m_GameObject: {fileID: 1625714886565098}
serializedVersion: 2 serializedVersion: 2
m_Mass: 1 m_Mass: 1
m_Drag: 0 m_Drag: 0
m_AngularDrag: 0.05 m_AngularDrag: 0.05
m_UseGravity: 1
m_IsKinematic: 0
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0 m_Interpolate: 0
m_Constraints: 122 m_Constraints: 122
m_CollisionDetection: 0 m_CollisionDetection: 0
--- !u!65 &65691259072704084 --- !u!65 &65691259072704084
BoxCollider: BoxCollider:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1625714886565098} m_GameObject: {fileID: 1625714886565098}
m_Material: {fileID: 0} m_Material: {fileID: 0}
@ -189,7 +189,7 @@ BoxCollider:
--- !u!114 &114765665304887144 --- !u!114 &114765665304887144
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1625714886565098} m_GameObject: {fileID: 1625714886565098}
m_Enabled: 1 m_Enabled: 1

+ 17
- 17
Assets/VeggieSpots/potatoe_Veggie.prefab View File

@ -8,15 +8,15 @@ Prefab:
m_TransformParent: {fileID: 0} m_TransformParent: {fileID: 0}
m_Modifications: [] m_Modifications: []
m_RemovedComponents: [] m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_SourcePrefab: {fileID: 0}
m_RootGameObject: {fileID: 1962983065673022} m_RootGameObject: {fileID: 1962983065673022}
m_IsPrefabParent: 1
m_IsPrefabAsset: 1
--- !u!1 &1819996850360574 --- !u!1 &1819996850360574
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
serializedVersion: 5
serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 4734090806519334} - component: {fileID: 4734090806519334}
- component: {fileID: 33850560214160788} - component: {fileID: 33850560214160788}
@ -31,9 +31,9 @@ GameObject:
--- !u!1 &1962983065673022 --- !u!1 &1962983065673022
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
serializedVersion: 5
serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 4303496572474838} - component: {fileID: 4303496572474838}
- component: {fileID: 33053839186561116} - component: {fileID: 33053839186561116}
@ -51,7 +51,7 @@ GameObject:
--- !u!4 &4303496572474838 --- !u!4 &4303496572474838
Transform: Transform:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1962983065673022} m_GameObject: {fileID: 1962983065673022}
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068} m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
@ -65,7 +65,7 @@ Transform:
--- !u!4 &4734090806519334 --- !u!4 &4734090806519334
Transform: Transform:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1819996850360574} m_GameObject: {fileID: 1819996850360574}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
@ -78,7 +78,7 @@ Transform:
--- !u!23 &23456570866874480 --- !u!23 &23456570866874480
MeshRenderer: MeshRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1962983065673022} m_GameObject: {fileID: 1962983065673022}
m_Enabled: 1 m_Enabled: 1
@ -113,7 +113,7 @@ MeshRenderer:
--- !u!23 &23718685713538394 --- !u!23 &23718685713538394
MeshRenderer: MeshRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1819996850360574} m_GameObject: {fileID: 1819996850360574}
m_Enabled: 1 m_Enabled: 1
@ -148,36 +148,36 @@ MeshRenderer:
--- !u!33 &33053839186561116 --- !u!33 &33053839186561116
MeshFilter: MeshFilter:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1962983065673022} m_GameObject: {fileID: 1962983065673022}
m_Mesh: {fileID: 4300000, guid: 3b0bd59f0036d194e93007a2170e54a8, type: 3} m_Mesh: {fileID: 4300000, guid: 3b0bd59f0036d194e93007a2170e54a8, type: 3}
--- !u!33 &33850560214160788 --- !u!33 &33850560214160788
MeshFilter: MeshFilter:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1819996850360574} m_GameObject: {fileID: 1819996850360574}
m_Mesh: {fileID: 4300000, guid: 74c23f5ead6217945889193b7c9fecb7, type: 3} m_Mesh: {fileID: 4300000, guid: 74c23f5ead6217945889193b7c9fecb7, type: 3}
--- !u!54 &54306878749251866 --- !u!54 &54306878749251866
Rigidbody: Rigidbody:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1962983065673022} m_GameObject: {fileID: 1962983065673022}
serializedVersion: 2 serializedVersion: 2
m_Mass: 1 m_Mass: 1
m_Drag: 0 m_Drag: 0
m_AngularDrag: 0.05 m_AngularDrag: 0.05
m_UseGravity: 1
m_IsKinematic: 0
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0 m_Interpolate: 0
m_Constraints: 0 m_Constraints: 0
m_CollisionDetection: 0 m_CollisionDetection: 0
--- !u!65 &65347772137123934 --- !u!65 &65347772137123934
BoxCollider: BoxCollider:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1962983065673022} m_GameObject: {fileID: 1962983065673022}
m_Material: {fileID: 0} m_Material: {fileID: 0}
@ -189,7 +189,7 @@ BoxCollider:
--- !u!114 &114017568557978584 --- !u!114 &114017568557978584
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1962983065673022} m_GameObject: {fileID: 1962983065673022}
m_Enabled: 1 m_Enabled: 1

+ 17
- 17
Assets/VeggieSpots/pumkin_Veggy.prefab View File

@ -8,15 +8,15 @@ Prefab:
m_TransformParent: {fileID: 0} m_TransformParent: {fileID: 0}
m_Modifications: [] m_Modifications: []
m_RemovedComponents: [] m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_SourcePrefab: {fileID: 0}
m_RootGameObject: {fileID: 1055933855271796} m_RootGameObject: {fileID: 1055933855271796}
m_IsPrefabParent: 1
m_IsPrefabAsset: 1
--- !u!1 &1055933855271796 --- !u!1 &1055933855271796
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
serializedVersion: 5
serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 4610351592258104} - component: {fileID: 4610351592258104}
- component: {fileID: 33773163536459918} - component: {fileID: 33773163536459918}
@ -34,9 +34,9 @@ GameObject:
--- !u!1 &1986284746880814 --- !u!1 &1986284746880814
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
serializedVersion: 5
serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 4177706736023740} - component: {fileID: 4177706736023740}
- component: {fileID: 33644288213472854} - component: {fileID: 33644288213472854}
@ -51,7 +51,7 @@ GameObject:
--- !u!4 &4177706736023740 --- !u!4 &4177706736023740
Transform: Transform:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1986284746880814} m_GameObject: {fileID: 1986284746880814}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
@ -64,7 +64,7 @@ Transform:
--- !u!4 &4610351592258104 --- !u!4 &4610351592258104
Transform: Transform:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1055933855271796} m_GameObject: {fileID: 1055933855271796}
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068} m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
@ -78,7 +78,7 @@ Transform:
--- !u!23 &23105538272536392 --- !u!23 &23105538272536392
MeshRenderer: MeshRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1055933855271796} m_GameObject: {fileID: 1055933855271796}
m_Enabled: 1 m_Enabled: 1
@ -113,7 +113,7 @@ MeshRenderer:
--- !u!23 &23505972226273318 --- !u!23 &23505972226273318
MeshRenderer: MeshRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1986284746880814} m_GameObject: {fileID: 1986284746880814}
m_Enabled: 1 m_Enabled: 1
@ -148,36 +148,36 @@ MeshRenderer:
--- !u!33 &33644288213472854 --- !u!33 &33644288213472854
MeshFilter: MeshFilter:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1986284746880814} m_GameObject: {fileID: 1986284746880814}
m_Mesh: {fileID: 4300000, guid: 74c23f5ead6217945889193b7c9fecb7, type: 3} m_Mesh: {fileID: 4300000, guid: 74c23f5ead6217945889193b7c9fecb7, type: 3}
--- !u!33 &33773163536459918 --- !u!33 &33773163536459918
MeshFilter: MeshFilter:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1055933855271796} m_GameObject: {fileID: 1055933855271796}
m_Mesh: {fileID: 4300000, guid: 5921179f1194c5e4198f1822b30470c0, type: 3} m_Mesh: {fileID: 4300000, guid: 5921179f1194c5e4198f1822b30470c0, type: 3}
--- !u!54 &54489524204841674 --- !u!54 &54489524204841674
Rigidbody: Rigidbody:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1055933855271796} m_GameObject: {fileID: 1055933855271796}
serializedVersion: 2 serializedVersion: 2
m_Mass: 1 m_Mass: 1
m_Drag: 0 m_Drag: 0
m_AngularDrag: 0.05 m_AngularDrag: 0.05
m_UseGravity: 1
m_IsKinematic: 0
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0 m_Interpolate: 0
m_Constraints: 0 m_Constraints: 0
m_CollisionDetection: 0 m_CollisionDetection: 0
--- !u!65 &65352493392744198 --- !u!65 &65352493392744198
BoxCollider: BoxCollider:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1055933855271796} m_GameObject: {fileID: 1055933855271796}
m_Material: {fileID: 0} m_Material: {fileID: 0}
@ -189,7 +189,7 @@ BoxCollider:
--- !u!114 &114591029731819978 --- !u!114 &114591029731819978
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1055933855271796} m_GameObject: {fileID: 1055933855271796}
m_Enabled: 1 m_Enabled: 1

+ 2
- 2
ProjectSettings/ProjectSettings.asset View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:49db624a0e6e3613f23cc7ac300bf259521df691b4f67d3ced11b017904df0a9
size 19716
oid sha256:6ba4c3d47aa076928780d5f05de2b50ae326177b318f4166b3d7083c5bd4e654
size 20678

Loading…
Cancel
Save