public static Rock GetInstance() { if (rock == null) { rock = new Rock(); rock.Name = "Rock"; rock.LosesTo = new List <IJokenpoItem>() { Paper.GetInstance(), Spock.GetInstance() }; } return(rock); }
public static Scissor GetInstance() { if (scissor == null) { scissor = new Scissor(); scissor.Name = "Scissor"; scissor.LosesTo = new List <IJokenpoItem>() { Rock.GetInstance(), Spock.GetInstance() }; } return(scissor); }
public static Spock GetInstance() { if (spock == null) { spock = new Spock(); spock.Name = "Spock"; spock.LosesTo = new List <IJokenpoItem> { Lizard.GetInstance(), Paper.GetInstance() }; } return(spock); }