示例#1
0
    void OnEndChargeForDisplayState()
    {
        if (detailStateUI == null)
        {
            return;
        }

        Destroy(detailStateUI.gameObject);
        detailStateUI = null;
    }
示例#2
0
    void OnStartTouchForDisplayState(Vector2 touch)
    {
        //ActiveTime停止中
        if (GameObject.FindGameObjectsWithTag("ActiveTime").Any(x => x.GetComponent <ActiveTime>().IsActive == true) == true)
        {
            return;
        }

        //ターゲットの検索
        var target = GetCharacterOnTile(touch);

        //ターゲットが存在しないマスをタップ
        if (target != this)
        {
            return;
        }

        //ターゲットが自分

        detailStateUI = Instantiate(Resources.Load <CharacterDetailStateUI>("CharacterDetailStateUI")) as CharacterDetailStateUI;
        detailStateUI.Init(touch, this.characterParameter);
    }
示例#3
0
    void OnStartTouchForDisplayState(Vector2 touch)
    {
        //ActiveTime停止中
        if (GameObject.FindGameObjectsWithTag("ActiveTime").Any(x => x.GetComponent<ActiveTime>().IsActive == true) == true) return;

        //ターゲットの検索
        var target = GetCharacterOnTile(touch);
        //ターゲットが存在しないマスをタップ
        if (target != this) return;

        //ターゲットが自分

        detailStateUI = Instantiate(Resources.Load<CharacterDetailStateUI>("CharacterDetailStateUI")) as CharacterDetailStateUI;
        detailStateUI.Init(touch, this.characterParameter);
    }
示例#4
0
    void OnEndChargeForDisplayState()
    {
        if (detailStateUI == null) return;

        Destroy(detailStateUI.gameObject);
        detailStateUI = null;
    }