public void Init(float _posX, float _posY, PathNodeDir _dir, CTRoom _room) { m_position = new Vector2(_posX, _posY); gameObject.transform.position = m_position; m_pathDir = _dir; m_room = _room; }
public CPathNode GetPathnode(PathNodeDir _direction) { if (pathnodes.ContainsKey(_direction)) { return(pathnodes[_direction]); } return(null); }