当前位置: 首页>>代码示例>>C#>>正文


C# SkeletonAnimation类代码示例

本文整理汇总了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 = "";

	}
开发者ID:Ankharia,项目名称:SpeedRun,代码行数:32,代码来源:TapCounter.cs

示例2: Start

 void Start()
 {
     m_anim = GetComponent< SkeletonAnimation > ();
     m_anim.state.Event += HandleEvent;
     m_anim.state.End += EndEvent;
     SetAnimation (PLAYER_IDLE_ANIN, true);
 }
开发者ID:yanzuzu,项目名称:GreekBasketball,代码行数:7,代码来源:PlayerController.cs

示例3: Start

 // Use this for initialization
 void Start()
 {
     tweenOrthoSize = GetComponent<TweenOrthoSize>();
     tweenPosition = GetComponent<TweenPosition>();
     TouchUI = GameObject.Find("TouchUI");
     skeletonAnimation = GameObject.Find("title").GetComponent<SkeletonAnimation>();
 }
开发者ID:dev-celvin,项目名称:DK,代码行数:8,代码来源:StartScene.cs

示例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);
	}
开发者ID:Ankharia,项目名称:SpeedRun,代码行数:8,代码来源:UIController.cs

示例5: Start

 void Start()
 {
     skeletonAnimation = GetComponent<SkeletonAnimation>();
     ColiderScript cs = GetComponentInChildren<ColiderScript>();
     cs.TriggerEnter += OnTriggerEnter;
     cs.CollisionEnter += OnCollisionEnter;
 }
开发者ID:supermax143,项目名称:unity-projects,代码行数:7,代码来源:DragonControllerScript.cs

示例6: Start

    void Start()
    {
        Anim = GetComponent<SkeletonAnimation>();

        Anim.state.SetAnimation(0, "boywalk", true);
        transform.DOMove(endPositon, timeMove).OnComplete(turnOffAnim);
    }
开发者ID:quangdai02031994,项目名称:Come-Back-Home,代码行数:7,代码来源:PlayerController.cs

示例7: Start

    public void Start()
    {
        skeletonAnimation = GetComponent<SkeletonAnimation>();
        skeletonAnimation.state.SetAnimation(0, "walk", true);

        skeletonAnimation.state.Event += new EventHandler<EventTriggeredArgs>(Event);
    }
开发者ID:reneretz,项目名称:spine-runtimes,代码行数:7,代码来源:Spineboy.cs

示例8: Start

	void Start () 
	{
		originalPosition = transform.position;
		originalScale = transform.localScale;

		audioSource = GetComponent<AudioSource>();
		spine = GetComponent<SkeletonAnimation>();
	}
开发者ID:ClazzX1,项目名称:BussStopOCD,代码行数:8,代码来源:Character.cs

示例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;
 }
开发者ID:Venbb,项目名称:Games,代码行数:9,代码来源:CrowMove.cs

示例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;
    }
开发者ID:quangdai02031994,项目名称:Come-Back-Home,代码行数:8,代码来源:BackGroundController.cs

示例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());
	}
开发者ID:X-Ray-Jin,项目名称:spine-runtimes,代码行数:8,代码来源:SpineBeginnerTwo.cs

示例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);
 }
开发者ID:elrod,项目名称:Aegyptia,代码行数:9,代码来源:Cat.cs

示例13: Start

	void Start() {
		if (speedReference == null)
			speedReference = transform;

		skeletonAnimation = GetComponent<SkeletonAnimation>();
		bone = SpineBone.GetBone(boneName, skeletonAnimation);
		skeletonAnimation.UpdateLocal += UpdateLocal;
		lastPosition = speedReference.position;
	}
开发者ID:Lucius0,项目名称:spine-runtimes,代码行数:9,代码来源:DynamicSpineBone.cs

示例14: Awake

    void Awake()
    {
        _equipment = GetComponent<EquipmentComponent>();
        _movement = GetComponent<MovementComponent>();
        _health = GetComponent<HealthComponent>();
        _skelAnim = GetComponent<SkeletonAnimation>();

        _health.armorValue = _equipment.GetArmor();
    }
开发者ID:SergeiKotov,项目名称:FightAgain-,代码行数:9,代码来源:PlayerMovement.cs

示例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);
	}
开发者ID:Bee-Cave-Games,项目名称:spine-runtimes,代码行数:10,代码来源:Spineboy.cs


注:本文中的SkeletonAnimation类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。