// Update is called once per frame private void Update() { body = crewController.GetPositionGameobject(1).Char.GetComponent <Rigidbody2D>(); var main = body.GetComponent <PathMover>(); if (main) { main.MainChar = true; } }
// Update is called once per frame private void Update() { body = crewController.GetPositionGameobject(1).Char.GetComponent <Rigidbody2D>(); var main = body.GetComponent <PathMover>(); if (main) { main.MainChar = true; } }