Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Animation looping on C# Boolean Value

$
0
0
Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class LadderControl : MonoBehaviour {
  5.    
  6.     public bool LadderCont;
  7.     public Collider LadderMesh;
  8.     public MeshRenderer LAC;
  9.     private bool Anim;
  10.    
  11.    
  12.     // Use this for initialization
  13.     void Start () {
  14.    
  15.     }
  16.    
  17.     // Update is called once per frame
  18.     void Update () {
  19.    
  20.        
  21.        
  22.         if(LadderCont == false){
  23.             LAC.animation["LadderUp"].wrapMode = WrapMode.Once;...
Animation looping on C# Boolean Value

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>