Example #1
0
 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;
 }
Example #2
0
    public CPathNode GetPathnode(PathNodeDir _direction)
    {
        if (pathnodes.ContainsKey(_direction))
        {
            return(pathnodes[_direction]);
        }

        return(null);
    }