// 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>(); }
// 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"; }
public Lean() { light = new Jab(); heavy = new Cross() { target = Torso() }; leftHook = new Hook("uppercut") { target = Torso() }; rightHook = new Hook("Rip") { target = Torso() }; }
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() }; }
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++; } } }
public LeanRight() { light = new Jab() { }; heavy = new Cross() { target = Torso() }; leftHook = new Hook("uppercut") { direction = Front() }; rightHook = new Hook("Rip") { direction = Right() }; }