Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     this.Selector = this.GetComponent<AnimationSelector>();
     Anime = Resources.Load(@"Graphics/BuffIcons/Poison2") as AnimationClip;
     Debug.Log(Anime);
     Selector.setNewAnimation(0, Resources.Load(@"Graphics/BuffIcons/Poison1") as AnimationClip,aoc);
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     animSelector = GetComponent<AnimationSelector>();
     hp = 150;
     alive = true;
     melee = 10;
     ranged = 10;
     numMelee = 0.0F;
     numRanged = 0.0F;
     rEnemy = GameObject.FindGameObjectWithTag ("ranged");
     mEnemy = GameObject.FindGameObjectWithTag ("melee");
 }
 public AnimationsPalette()
 {
     _animationsScroll = new AnimationsScroll(15, X + 163, Y);
     _animationSelector = new AnimationSelector(X, Y, YIncrement, _animationsScroll);
     _animationNameEditor = new AnimationNameEditor(_animationSelector, _animationsScroll, X + 33, Y);
 }
Esempio n. 4
0
 private void OnDisable()
 {
     Instance = null;
 }
Esempio n. 5
0
 private void OnEnable()
 {
     Instance = this;
 }