protected virtual void InitComponents() { rb = GetComponent <Rigidbody2D>(); render = transform.GetChild(0).GetComponent <SpriteRenderer>(); bodyColl = transform.GetChild(0).GetComponent <CircleCollider2D>(); orgMovement = GetComponent <OrganismMovement>(); orgAttack = GetComponent <OrganismAttack>(); orgDuplication = GetComponent <OrganismDuplication>(); orgMutation = GetComponent <OrganismMutation>(); }
/***** MONOBEHAVIOUR FUNCTIONS *****/ private void Start() { selfOrganism = GetComponent <Organism>(); orgMovement = GetComponent <OrganismMovement>(); }