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