public void CloseAndPay()
    {
        // 770 CFA to 1 pound
        IncomeManager.AddMoney(amountToPay);
        ChildManager.ApplyEventToAllChildren(new DataPacket(0, 100, 0, 100));
        GameObject.Find("MoneyText").GetComponent <Text>().color = new Color(34.0f / 255, 139.0f / 255, 34.0f / 255, 1.0f);

        Close();
    }
Example #2
0
    protected override void OnAliveChildTimeComplete(Child child)
    {
        base.OnAliveChildTimeComplete(child);

        ChildManager.ApplyEventToAllChildren(new DataPacket(5, 0, 0, 5));
    }
    protected override void OnNo()
    {
        base.OnNo();

        ChildManager.ApplyEventToAllChildren(new DataPacket(0, 80, 0, 0));
    }
 protected override void OnAliveChildTimeComplete(Child child)
 {
     // Undo the incremental changes on this child
     child.Apply(new DataPacket(0, -2, -1, -3));
     ChildManager.ApplyEventToAllChildren(new DataPacket(0, 2, 1, 3));
 }