// Use this for initialization void Start() { m_instance = this; m_animator = GetComponent <Animator>(); m_transition = 0.0f; m_animWalk = new AnimWalkFWD(); m_animDuck = new AnimDuck(); m_animRun = new AnimRun(); m_animIdle = new AnimIdle(); //m_animIdle.SetFrames(m_framesToAdd); }
public void Initialize(Vector3 scale, Vector3 rotation) { this.AddTexture("Models/Mine/Base"); this.AddTexture("Models/Mine/Drill"); this.AddTexture("Models/Mine/Top"); this.AddTexture("Models/Mine/Wheel"); this.scale = scale; this.Rotation = rotation; this.location = location; this.LoadModel("Models/Mine/Mine"); ConstructionAnimation = new AnimConstruction(this.model, this.BoneNames); ActiveMineAnimation = new AnimActive(this.model, this.BoneNames); IdleAnimation = new AnimIdle(this.model, this.BoneNames); ConstructionAnimation.NextAnimation = ActiveMineAnimation; CurrentAnimation = ConstructionAnimation; }