예제 #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 Awake()
    {
        selfOrganism = GetComponent <Organism>();
        orgAttack    = GetComponent <OrganismAttack>();
    }