Exemplo n.º 1
0
    /// <summary>
    /// 箱に接触した場合の処理
    /// </summary>
    /// <param name="box"></param>
    protected void CheckColliedingBox(BaseBox box)
    {
        if (state.name == (int)STATENAME.Damage)
        {
            box.Crash();
            parameter.damage.damageParameter.damage = 1;
            return;
        }

        transform.localPosition = box.PositionFix(transform.localPosition);
    }
Exemplo n.º 2
0
 /// <summary>
 /// 箱と衝突した場合の処理
 /// </summary>
 /// <param name="box"></param>
 virtual protected void ColliedBox(BaseBox box)
 {
     box.Crash();
     SelfDestroy();
 }
Exemplo n.º 3
0
 /// <summary>
 /// ���ƏՓ˂����ꍇ�̏���
 /// </summary>
 /// <param name="box"></param>
 protected virtual void ColliedBox(BaseBox box)
 {
     box.Crash();
     SelfDestroy();
 }
Exemplo n.º 4
0
    /// <summary>
    /// ���ɐڐG�����ꍇ�̏���
    /// </summary>
    /// <param name="box"></param>
    protected void CheckColliedingBox(BaseBox box)
    {
        if (state.name == (int)STATENAME.Damage)
        {
            box.Crash();
            parameter.damage.damageParameter.damage = 1;
            return;
        }

        transform.localPosition = box.PositionFix(transform.localPosition);
    }