Пример #1
0
    public override void InteractWith(InteractiveStatus s, PhysicalInteractionEntity i)
    {
        if (this.currentSetOnElement != null)
        {
            this.currentSetOnElement(false);
            this.currentSetOnElement = null;
        }

        switch (s.element.type)
        {
        case ChemicalElement.Fire:
            this.currentSetOnElement += this.SetOnFire;
            break;

        default:
            this.currentSetOnElement = null;
            break;
        }

        if (this.currentSetOnElement != null)
        {
            this.currentSetOnElement(true);
        }
    }
Пример #2
0
 /* ---------------------------------------------------------------------------------------------*/
 /* ---------------------------------------------------------------------------------------------*/
 /* ---------------------------------------------------------------------------------------------*/
 /* ------------------------------------ INTERACT FUNCTIONS -------------------------------------*/
 /* ---------------------------------------------------------------------------------------------*/
 /* ---------------------------------------------------------------------------------------------*/
 /* ---------------------------------------------------------------------------------------------*/
 public override void InteractWith(InteractiveStatus s, PhysicalInteractionEntity i)
 {
     // to do
 }