You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
767 B
C#
36 lines
767 B
C#
using UnityEngine;
|
|
|
|
namespace Game
|
|
{
|
|
public class LevelNode : MonoBehaviour
|
|
{
|
|
private string _cfgId;
|
|
private string _targetId;
|
|
private Vector3 _pos;
|
|
public void SetCfgId(string id)
|
|
{
|
|
_cfgId = id;
|
|
}
|
|
public string GetCfgId()
|
|
{
|
|
return _cfgId;
|
|
}
|
|
public void SetTargetId(string id)
|
|
{
|
|
_targetId = id;
|
|
}
|
|
public string GetTargetId()
|
|
{
|
|
return _targetId;
|
|
}
|
|
public void SetPos(Vector3 pos)
|
|
{
|
|
_pos = pos;
|
|
}
|
|
public Vector3 GetPos()
|
|
{
|
|
return _pos;
|
|
}
|
|
public virtual void OnInit() { }
|
|
}
|
|
} |