public void Alarm1() { t = 1; pd = GMComponent.PointDistance( GM.offsetX + p1, GM.offsetY - p2, player.transform.position.x, player.transform.position.y); d = GMComponent.PointDirection( GM.offsetX + p1, GM.offsetY - p2, player.transform.position.x, player.transform.position.y); }
public void Alarm0() { t = 1; pd = GMComponent.PointDistance(p1, p2, transform.position.x, transform.position.y); d = GMComponent.PointDirection(p1, p2, transform.position.x, transform.position.y); }