Пример #1
0
    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>();
    }
Пример #2
0
    /***** MONOBEHAVIOUR FUNCTIONS *****/

    private void Start()
    {
        selfOrganism = GetComponent <Organism>();
        orgMovement  = GetComponent <OrganismMovement>();
    }