本文整理汇总了C#中SkeletonAnimation类的典型用法代码示例。如果您正苦于以下问题:C# SkeletonAnimation类的具体用法?C# SkeletonAnimation怎么用?C# SkeletonAnimation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SkeletonAnimation类属于命名空间,在下文中一共展示了SkeletonAnimation类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
void Start ()
{
gmc = GameObject.FindGameObjectWithTag("GameController").GetComponent<Spawner>();
print(gmc.sprites[gmc.num]);
/*anim = GameObject.FindGameObjectsWithTag("animation");
anim.SetActive(false);*/
skeletonAnimation = GameObject.FindGameObjectWithTag("animation").GetComponent<SkeletonAnimation>();
skeletonAnimation.enabled = true;
gmv = GameObject.FindGameObjectWithTag("GameOver");
cnt = GameObject.FindGameObjectWithTag("animation");
//gmv.SetActive(false);
gameOv =GameObject.FindGameObjectWithTag("GameOver").GetComponent<SkeletonAnimation>();
if(this.gameObject.GetComponent<TapCounter>().enabled){
skeletonAnimation.state.SetAnimation(0, "tap_amount_in", false);
skeletonAnimation.state.AddAnimation(0, "tap_amount_loop", true, 0.3f);
}
gmv.SetActive(false);
cnt.SetActive(true);
/*gmv = GameObject.FindGameObjectWithTag("GameOver");
cnt = GameObject.FindGameObjectWithTag("animation");
gmv.SetActive(false);*/
AudioSource[] sources = GetComponents<AudioSource>();
tap = sources[0];
bad = sources[1];
good = sources[2];
spw = GameObject.FindGameObjectWithTag("GameController").GetComponent<Spawner>();
sc = GameObject.FindGameObjectWithTag("Score").GetComponent<ScoreController>();
scoreCounter.text = "";
}
示例2: Start
void Start()
{
m_anim = GetComponent< SkeletonAnimation > ();
m_anim.state.Event += HandleEvent;
m_anim.state.End += EndEvent;
SetAnimation (PLAYER_IDLE_ANIN, true);
}
示例3: Start
// Use this for initialization
void Start()
{
tweenOrthoSize = GetComponent<TweenOrthoSize>();
tweenPosition = GetComponent<TweenPosition>();
TouchUI = GameObject.Find("TouchUI");
skeletonAnimation = GameObject.Find("title").GetComponent<SkeletonAnimation>();
}
示例4: Start
// Use this for initialization
void Start () {
skeletonAnimation = GameObject.FindGameObjectWithTag("animation").GetComponent<SkeletonAnimation>();
//Invoke("BeginUI", 0);
//Invoke("UImenu", 0.4f);
skeletonAnimation.state.SetAnimation(0, "menu_in", false);
skeletonAnimation.state.AddAnimation(0, "menu_loop", true, 0);
}
示例5: Start
void Start()
{
skeletonAnimation = GetComponent<SkeletonAnimation>();
ColiderScript cs = GetComponentInChildren<ColiderScript>();
cs.TriggerEnter += OnTriggerEnter;
cs.CollisionEnter += OnCollisionEnter;
}
示例6: Start
void Start()
{
Anim = GetComponent<SkeletonAnimation>();
Anim.state.SetAnimation(0, "boywalk", true);
transform.DOMove(endPositon, timeMove).OnComplete(turnOffAnim);
}
示例7: Start
public void Start()
{
skeletonAnimation = GetComponent<SkeletonAnimation>();
skeletonAnimation.state.SetAnimation(0, "walk", true);
skeletonAnimation.state.Event += new EventHandler<EventTriggeredArgs>(Event);
}
示例8: Start
void Start ()
{
originalPosition = transform.position;
originalScale = transform.localScale;
audioSource = GetComponent<AudioSource>();
spine = GetComponent<SkeletonAnimation>();
}
示例9: Start
// Use this for initialization
void Start()
{
m_transform = this.transform;
m_animation = this.GetComponent<SkeletonAnimation>();
m_animation.timeScale = Random.Range(0.8f, 1.2f);
m_animation.state.Event += state_Event;
m_animation.state.End += state_End;
}
示例10: Start
void Start()
{
mama_Anim = mama.GetComponent<SkeletonAnimation>();
Mama_ChangeAnimaton(AnimationNames.lv_finish_mama_walk, true);
house_door.transform.DOMove(endCua.position, 1).OnComplete(change_isMove);
Inst = this;
}
示例11: Start
void Start () {
// Make sure you get these AnimationState and Skeleton references in Start or Later. Getting and using them in Awake is not guaranteed by default execution order.
skeletonAnimation = GetComponent<SkeletonAnimation>();
spineAnimationState = skeletonAnimation.state;
skeleton = skeletonAnimation.skeleton;
StartCoroutine(DoDemoRoutine());
}
示例12: Start
void Start()
{
transform.parent = null;
controller = GetComponent<Controller2D>();
gravity = -(2 * jumpHeight) / Mathf.Pow(timeToJumpApex, 2);
jumpVelocity = Mathf.Abs(gravity) * timeToJumpApex;
spineAnim = GetComponent<SkeletonAnimation>();
randomMeow = Random.Range (1.5f, 3f);
}
示例13: Start
void Start() {
if (speedReference == null)
speedReference = transform;
skeletonAnimation = GetComponent<SkeletonAnimation>();
bone = SpineBone.GetBone(boneName, skeletonAnimation);
skeletonAnimation.UpdateLocal += UpdateLocal;
lastPosition = speedReference.position;
}
示例14: Awake
void Awake()
{
_equipment = GetComponent<EquipmentComponent>();
_movement = GetComponent<MovementComponent>();
_health = GetComponent<HealthComponent>();
_skelAnim = GetComponent<SkeletonAnimation>();
_health.armorValue = _equipment.GetArmor();
}
示例15: Start
void Start() {
// Get the SkeletonAnimation component for the GameObject this script is attached to.
skeletonAnimation = GetComponent<SkeletonAnimation>();
// Call our method any time an animation fires an event.
skeletonAnimation.state.Event += Event;
// Queue jump to be played on track 0 two seconds after the starting animation.
skeletonAnimation.state.AddAnimation(0, "jump", false, 2);
// Queue walk to be looped on track 0 after the jump animation.
skeletonAnimation.state.AddAnimation(0, "run", true, 0);
}