public AnimBlock(string _clipName, AnimMachine _origin) { clipName = _clipName; pictureIndex = 0; origin = _origin; lastSpriteChangeTime = 0; sprites = SpritesData.LoadSpritesAtPath("Import/Art/Sprites/" + origin.name + "-" + clipName + "/"); }
private void Start() { player = this; body = GetComponent <Rigidbody2D> (); coll = GetComponent <CapsuleCollider2D> (); trans = transform; rend = GetComponentInChildren <SpriteRenderer> (); momentDoMachine = MDMachine.Humanic_Player(this); motionMachine = MotionMachine.Humanic(this); animMachine = new AnimMachine(characterName, this); }