コード例 #1
0
 public StateWallmasterMovement(WallmasterScript enemyObj, PlayerControl pc, Hand handType)
 {
     this.enemyObj = enemyObj;
     this.pc       = pc;
     this.handType = handType;
     chkpt0        = enemyObj.transform.GetChild(0).localPosition;
 }
コード例 #2
0
 public StateWallmasterTeleport(WallmasterScript enemyObj, PlayerControl pc, Direction dir, Hand handType)
 {
     this.enemyObj = enemyObj;
     this.pc       = pc;
     this.dir      = dir;
     this.handType = handType;
     if (handType == Hand.LEFT)
     {
         finalPos = new Vector3(-3, -1, 0);
     }
     else
     {
         finalPos = new Vector3(3, -1, 0);
     }
 }