Ejemplo n.º 1
0
    void Update()
    {
        //移動処理
        TouchInfo touchInfo = TouchUtil.GetTouch();

        if (touchInfo == TouchInfo.Began && !PlayerStatus.Instance.IsDamage)
        {
            Move();
        }

        //弾丸処理
        if (poolController.IsCreate())
        {
            poolController.CreateObj(poolController.AttachPoint.position, poolController.AttachPoint.rotation);
            SoundController.Instance.PlaySE(PlayerSE, 2);
        }

        //死亡処理
        if (PlayerStatus.Instance.PlayerHp.Value <= 0.0f)
        {
            Death();
        }
    }