Beispiel #1
0
    public void UnView()
    {
		if (View_Char.Count > 0) return;

        View_Check = false;
        ViewState = View_State.OutSight;
        GetComponent<SpriteRenderer>().color = new Color(1 -orginal_color.r, 1 -orginal_color.g, 1 - orginal_color.b, 1f);
        if (_obstacle != null)
            _obstacle.Change();
    }
Beispiel #2
0
    public void InView()
    {
		
        ViewState = View_State.InSight;
        View_Check = true;

        if (gameObject.layer != 8)
            gameObject.layer = 8;

        GetComponent<SpriteRenderer>().color = orginal_color;
        if (_obstacle != null)
            _obstacle.Change();
        Action.Tile_InSighted += UnSight;
    }