// Use this for initialization void Start () { danceMoves = new ArrayList (); woowee = wooweeObject.GetComponent<WooeeController> (); messageController = messageObject.GetComponent<MessageController> (); comboEffect = GetComponentInChildren<ComboEffect>(); startingPosition = this.transform.position; }
public float getAffectionDelta(KeyAction lastMove, float accuracy, WooeeController wooee, PlayerController player) { if (lastMove == KeyAction.Miss) { return -RuleBook.baseScore; } if (lastMove == KeyAction.Fail) { return -RuleBook.baseScore * 4; } return 0; }
public float getAffectionDelta(KeyAction lastMove, float accuracy, WooeeController wooee, PlayerController player) { if (KeyActionHelper.isFail(lastMove)) { return 0; } if (wooee.affection < 0.3) { return 6 * RuleBook.baseScore * accuracy; } else if (wooee.affection < 0.6) { return RuleBook.baseScore * accuracy; } return 0; }
public float getAffectionDelta(KeyAction lastMove, float accuracy, WooeeController wooee, PlayerController player) { if (KeyActionHelper.isFail(lastMove)) { return 0; } for(int i=4; i>=1; i--) { if (player.danceMoves.Count < i * 2) { continue; } ArrayList prevSequence = player.danceMoves.GetRange(player.danceMoves.Count - 2*i, i); ArrayList currentSequence = player.danceMoves.GetRange(player.danceMoves.Count - i, i); if (prevSequence.Cast<object>().SequenceEqual(currentSequence.Cast<object>())) { return - i * RuleBook.baseScore * 8; } } return 0; }
public float getAffectionDelta(KeyAction lastMove, float accuracy, WooeeController wooee, PlayerController player) { if (KeyActionHelper.isCombo (lastMove)) { if (wooee.affection < minAffection) { return 1 * RuleBook.baseScore; } else { return 3 * RuleBook.baseScore; } } return 0; }
public float getAffectionDelta(KeyAction lastMove, float accuracy, WooeeController wooee, PlayerController player) { float sum = 0f; foreach (IRule rule in rules) { sum += rule.getAffectionDelta(lastMove, accuracy, wooee, player); } return sum; }
public float getAffectionDelta(KeyAction lastMove, float accuracy, WooeeController wooee, PlayerController player) { if (wooee.trait == CharacterTrait.Stache) { return getDelta (player); } return 0; }
public float getAffectionDelta(KeyAction lastMove, float accuracy, WooeeController wooee, PlayerController player) { if (wooee.env == EnvironmentType.Night) { return getDelta (player); } return 0; }
public float getAffectionDelta(KeyAction lastMove, float accuracy, WooeeController wooee, PlayerController player) { if (wooee.color == CharacterColor.Blue) { return getDelta (player); } return 0; }
public float getAffectionDelta(KeyAction lastMove, float accuracy, WooeeController wooee, PlayerController player) { return getDelta (player); }
public float getAffectionDelta(KeyAction lastMove, float accuracy, WooeeController wooee, PlayerController player) { if (wooee.size == CharacterSize.Dwarf) { return getDelta (player); } return 0; }
// Use this for initialization void Start () { woowee = wooweeObject.GetComponent<WooeeController> (); slider = this.GetComponent<Slider> (); }