public void Initialize(ShipModel model)
        {
            if (model == null)
            {
                return;
            }
            this.mTexture_ShipCard.mainTexture = SingletonMonoBehaviour <ResourceManager> .Instance.ShipTexture.Load(model.MstId, 3);

            TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOShakePosition(this.mTexture_ShipCard.get_transform(), 0.3f, 5f, 10, 90f, false), delegate
            {
                ShortcutExtensions.DOLocalMove(this.mTexture_ShipCard.get_transform(), this.mVector3ShipCardDefaultPosition, 0.1f, false);
            });
        }
示例#2
0
 public static Tweener DOShakePosition(Transform target, float duration, Vector3 strength, int vibrato = 10, float randomness = 90f, bool snapping = false)
 {
     return(ShortcutExtensions.DOShakePosition(target, duration, strength, vibrato, randomness, snapping));
 }