// 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); }
// 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); }
private void OnDisable() { Instance = null; }
private void OnEnable() { Instance = this; }