Ejemplo n.º 1
0
 public void Erase()
 {
     this.transform.position = new Vector3( this.GetPosF().x, 10 );
     this.Rigidbody2D.velocity = Vector2.zero;
     flag_IsTouched = false;
     linkTo = null;
     LinkLightEffect.Stop();
     SetDropType( dropType_GOorRIorRA );
 }
Ejemplo n.º 2
0
    public bool IsLinkable( Drop_HowToPlay to )
    {
        if( to == null ) return false;
        if( this.GetPosF().LengthSq( to.GetPosF() ) > LinkRadius ) return false;
        if( HowToPlayManager.IsLinked( to ) ) return false;

        if( ( this.dropType == DropType.GO && to.dropType == DropType.RI ) ||
            ( this.dropType == DropType.RI && to.dropType == DropType.RA ) ||
            ( this.dropType == DropType.RA && to.dropType == DropType.GO ) )
        {
            return true;
        }
        else return false;
    }
Ejemplo n.º 3
0
 private void ExplodeBanana( Drop_HowToPlay BananaDrop )
 {
     //バナナはバナナの周りを消す.バナナでバナナは消えない.
     foreach( Drop_HowToPlay drop in allDrops
         .Where( x => x.GetPosF().IsInCircle( BananaDrop.GetPosF(), BananaRadius ) )
         .Where( x => !x.IsBanana() ) )
     {
         drop.Erase();
     }
     BananaDrop.ExplodeBanana();
 }
Ejemplo n.º 4
0
 public void AddLinkedDrop( Drop_HowToPlay drop )
 {
     linkedDrops.Add( drop );
 }
Ejemplo n.º 5
0
 public bool IsLinked( Drop_HowToPlay drop )
 {
     foreach( Drop_HowToPlay linkedDrop in linkedDrops )
     {
         if( linkedDrop == drop ) return true;
     }
     return false;
 }