Ejemplo n.º 1
0
    private void Awake()
    {
        rigidbody        = GetComponent <Rigidbody>();
        renderer         = GetComponent <Renderer>();
        minimap          = GetComponent <MinimapObject>();
        hasRigidbody     = rigidbody != null;
        gameObject.layer = LayerMask.NameToLayer("Object");

        GetComponentsInChildren(colliders);
        colliders.RemoveAll(c => c.isTrigger);
    }
Ejemplo n.º 2
0
 protected override PoolableIndicator GetPoolable(MinimapObject minimapObject)
 {
     return(_IndicatorPool.Get() as PoolableIndicator);
 }