public void RespondTarget(int pad) { if (PlayerInfo.turn % 4 == PlayerInfo.Turnnum && onceTrig_2) { if (new_char == 2) { if (new_st == 1) { Mermaids.ACT_Skill_1(pad); } else if (new_st == 2) { Mermaids.ACT_Skill_2(pad); } } if (new_char == 3) { if (new_st == 1) { Griffon.ACT_Skill_1(pad); } } onceTrig_1 = true; onceTrig_2 = false; } }
// Start is called before the first frame update void Start() { aeroports = GameObject.FindGameObjectsWithTag("Aeroport"); griffon = new Griffon(); griffon.speed = 2; routes = new List <Transform>(); current = start; routes.AddRange(GetComponent <Djikstra>().shortestPath(current, end)); }
public void OnClick() { if (ConnectAndJoinRandom.character == 2) { Mermaids.Skill_2(); } else if (ConnectAndJoinRandom.character == 3) { Griffon.Skill_2(); } }
static void Main(string[] args) { //Animal.Animal beast = new Animal.Animal(); //beast.Talk(); //beast.Greet(); //beast.Sing(); Dog bowser = new Dog(); bowser.Talk(); bowser.Greet(); bowser.Sing(); bowser.Fetch("stick"); bowser.FeedMe(); bowser.TouchMe(); Robin red = new Robin(); red.Talk(); red.Greet(); red.Sing(); //red.Fetch("worm"); //red.FeedMe(); //red.TouchMe(); Mosquito buzzy = new Mosquito(); buzzy.Fly(); Horse gerald = new Horse(); gerald.Ride(); Griffon flamel = new Griffon(); flamel.Fly(); flamel.Ride(); Console.ReadKey(); }
public void OnClick() { if (ConnectAndJoinRandom.character == 1) { Goblins.Skill_1(); } else if (ConnectAndJoinRandom.character == 2) { Mermaids.Skill_1(); } else if (ConnectAndJoinRandom.character == 3) { Griffon.Skill_1(); } else if (ConnectAndJoinRandom.character == 4) { Frankenstein.Skill_1(); } }