A 2D Farming RPG
This is just a simple 2D farming RPG game
Loading...
Searching...
No Matches
Vector3Serializable.cs
Go to the documentation of this file.
1
7[System.Serializable]
9{
10 public float m_X;
11 public float m_Y;
12 public float m_Z;
13
20 public Vector3Serializable( float x, float y, float z )
21 {
22 this.m_X = x;
23 this.m_Y = y;
24 this.m_Z = z;
25 }
26
28 {
29 }
30}
Unity Vector3 data type is NOT serializable. Therefore, it can't be searilize and saved to a datafile...
Vector3Serializable(float x, float y, float z)
Constructor to pass in position data