Beispiel #1
0
    private void Awake()
    {
        activator = GetComponent <IActivateArrow>();
        animator  = GetComponent <IAnimateActivation>();

        arrowPointer = GetComponent <IPointAtTarget>();
        if (arrowPointer == null)
        {
            arrowPointer = GetComponentInChildren <IPointAtTarget>();
        }
    }
Beispiel #2
0
    private void Awake()
    {
        //finding the the implementation of the interfaces
        arrowPointer = GetComponent <IPointAtTarget>();
        if (arrowPointer == null)
        {
            arrowPointer = GetComponentInChildren <IPointAtTarget>();
        }

        activator = GetComponent <IActivateArrow>();
        animator  = GetComponent <IAnimateActivation>();
    }