ok, so im using ragepixel and im trying to get my animation to complete and then play another animation.
can you make the script to wait for like 2 seconds?
or is there lika a wait for animation to complete command that works with ragepixel?
like this?
using UnityEngine;
using System.Collections;
public class openbag : MonoBehaviour {
private IRagePixel ragePixel;
// Use this for initialization
void Start () {
ragePixel = GetComponent<RagePixelSprite>();
}
// Update is called once per frame
void Update () {
if (Input.GetKey(KeyCode.RightAlt))
{
ragePixel.SetSprite("EQUIP");
ragePixel.PlayNamedAnimation("EQUIP");
// wait for (animation to complete) then
ragePixel. PlayNamedAnimation("SOMETHING");
}
}
}