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 ); }
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; }
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(); }
public void AddLinkedDrop( Drop_HowToPlay drop ) { linkedDrops.Add( drop ); }
public bool IsLinked( Drop_HowToPlay drop ) { foreach( Drop_HowToPlay linkedDrop in linkedDrops ) { if( linkedDrop == drop ) return true; } return false; }