Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     shScript       = GetComponent <SizeHandler>();
     jabScript      = GetComponentInChildren <Jab>();
     damageScript   = GetComponent <HandleDamage>();
     bcScript       = GetComponentInChildren <BreadCheck>();
     movementScript = GetComponent <CharacterMovement>();
 }
Ejemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        myDuck     = GetComponent <Duck>();
        controller = GetComponent <CharacterController>();
        jabScript  = GetComponentInChildren <Jab>();

        horizontalInputName = myDuck.playerID + "_Horizontal";
        verticalInputName   = myDuck.playerID + "_Vertical";
        jumpButtonName      = myDuck.playerID + "_Jump";
        jabButtonName       = myDuck.playerID + "_Jab";
    }
Ejemplo n.º 3
0
 public Lean()
 {
     light = new Jab();
     heavy = new Cross()
     {
         target = Torso()
     };
     leftHook = new Hook("uppercut")
     {
         target = Torso()
     };
     rightHook = new Hook("Rip")
     {
         target = Torso()
     };
 }
Ejemplo n.º 4
0
 public Normal()
 {
     head = new Head()
     {
         front = true
     };
     light    = new Jab();
     heavy    = new Cross();
     leftHook = new Hook("left hook")
     {
         direction = Left()
     };
     rightHook = new Hook("right hook")
     {
         direction = Right()
     };
 }
Ejemplo n.º 5
0
    void InstantiateJabs()
    {
        int id = 0;

        for (int i = 0; i < Cols; i++)
        {
            for (int j = 0; j < Rows; j++)
            {
                Vector2 pos    = new Vector2(j * difX, i * -difY);
                Jab     newJab = Instantiate(JabPrefab, pos, Quaternion.identity).GetComponent <Jab>();
                board.Add(newJab);
                newJab.gameObject.transform.SetParent(this.transform, false);
                newJab.Initialize(id);
                id++;
            }
        }
    }
Ejemplo n.º 6
0
 public LeanRight()
 {
     light = new Jab()
     {
     };
     heavy = new Cross()
     {
         target = Torso()
     };
     leftHook = new Hook("uppercut")
     {
         direction = Front()
     };
     rightHook = new Hook("Rip")
     {
         direction = Right()
     };
 }