private void Start() { rb = GetComponent <Rigidbody2D>(); character = GetComponent <BaseCharacter>(); t = GetComponent <Transform>(); InvokeRepeating("UpdatePath", 0f, PathUpdateInterval); globalMovementMesh = GlobalMovementMesh.Instance; }
private void Awake() { Instance = this; }