Exemple #1
0
    public override void RestoreData()
    {
        mobName            = data.mobName;
        Health             = data.health;
        transform.position = new Vector3(data.xPos, data.yPos, data.zPos);
        Quaternion rotation = new Quaternion();

        rotation.eulerAngles = new Vector3(0, data.yRot);
        transform.rotation   = rotation;

        StateSerializer ss = data.state;

        ss.LoadState(this);
    }