示例#1
0
 public AnimBlock(string _clipName, AnimMachine _origin)
 {
     clipName             = _clipName;
     pictureIndex         = 0;
     origin               = _origin;
     lastSpriteChangeTime = 0;
     sprites              = SpritesData.LoadSpritesAtPath("Import/Art/Sprites/" + origin.name + "-" + clipName + "/");
 }
示例#2
0
 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);
 }