public void FlyToPos(Vector3 pos,FlyCompleteDelegate completeCallBack) { SetRandomMoveActive(false); if (TweenFloatObj != null) Destroy(TweenFloatObj); mFragmentStatus = FragmentStatus.FlyToPos; TweenFloatObj = TweenFloat.Begin(0.5f, 0, 1, SetPosition, OnFlyComplete); fromPos = transform.position; toPos = pos; FlyCompleteCallBack = completeCallBack; // mTweenPosition.enabled = false; }
public bool MarkFragmentIfPresent(byte[] data, FragmentStatus newStatus) { var fragment = this.CurrentSendFragments.FirstOrDefault(x => x.Data == data); if (fragment == null) { return false; } var index = this.CurrentSendFragments.IndexOf(fragment); this.CurrentSendFragments[index].Status = newStatus; return true; }
public bool MarkFragmentIfPresent(byte[] data, FragmentStatus newStatus) { var fragment = this.CurrentSendFragments.FirstOrDefault(x => x.Data == data); if (fragment == null) { return(false); } var index = this.CurrentSendFragments.IndexOf(fragment); this.CurrentSendFragments[index].Status = newStatus; return(true); }
public void Init(FragmentType type,bool isShowEffect = false) { mFragmentType = type; transform.localScale *= (int)type; mFragmentStatus = FragmentStatus.Stay; SetRandomMoveActive(true); }
/// <summary> /// Initializes a new instance of the <see cref="Fragment"/> class. /// </summary> /// <param name="data"> /// The raw data of the fragment. /// </param> /// <param name="status"> /// The fragment status. /// </param> public Fragment(byte[] data, FragmentStatus status) { this.Data = data; this.Status = status; }
/// <summary> /// Initializes a new instance of the <see cref="Fragment"/> class. /// </summary> /// <param name="data"> /// The raw data of the fragment. /// </param> /// <param name="status"> /// The fragment status. /// </param> public Fragment(byte[] data, FragmentStatus status) { this.Data = data; this.Status = status; }