public SmallEducatorLeaf(int id, string name, float minute, float second, SmallEducator program, ILeafBehaviour behaviour) :
     base(id, name, (minute * 60) + second)
 {
     this.behaviour = behaviour;
     this.program   = program;
     started        = false;
 }
Exemple #2
0
    private void addLeafWithText(Component head, float minute, float second, ILeafBehaviour behaviour)
    {
        Component textLeaf = new SmallEducatorLeaf(1001, "TextLeaf", minute, second, this, behaviour);

        head.addComponent(textLeaf);
    }