예제 #1
0
    // =====================================================
    // Initialization
    // =====================================================

    public override void Init(Grid grid, int x, int y, float scale = 1, Sprite asset = null)
    {
        base.Init(grid, x, y, scale, asset);
        walkable = false;

        SetImages(scale, new Vector3(0, 0.1f, 0), 0.035f);


        state = CreatureStates.Idle;
        stats = new CreatureStats();
        bar.Init(this);

        LocateAtCoords(x, y);
    }