public void snapSkill() { if (this.GetComponent <StatsPlayer>().skillActive == skillID && GetComponent <StatsPlayer>().canskill == 0 && GetComponent <StatsPlayer>().canWalk == 0 && Pathfinding2.GetDistance2( GameObject.Find("A*").GetComponent <Grid>().NodeFromWorldPoint(this.transform.position), GameObject.Find("A*").GetComponent <Grid>().NodeFromWorldPoint(point)) <= range && !GetComponent <NetworkPlayer>().walking) { PathRequestMaganer2.RequestPath(transform.position, point, snap); RpcMovesnap(); } }
void Awake() { instance = this; pathfinding = GetComponent <PathLine>(); }
public void RpcMovesnap() { PathRequestMaganer2.RequestPath(transform.position, point, snapclient); }
void Awake() { requestManager = GetComponent <PathRequestMaganer2>(); grid = GetComponent <Grid>(); }