Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        rt = GetComponent <RectTransform>();

        blueCurrentHealth = FindObjectOfType <BluePlayerHealthManager>();

        image = GetComponent <Image>();
    }
Пример #2
0
    //======================================

    // Start is called before the first frame update
    void Start()
    {
        // Player Controller
        bluePlayerController = GetComponent <BluePlayerController>();

        // Player Health Controller
        blueHealthController = GetComponent <BluePlayerHealthManager>();

        // Camera to Draw From
        mainCamera = FindObjectOfType <Camera>();
    }
Пример #3
0
 // Start is called before the first frame update
 void Start()
 {
     //  Store Self ID - used with KnockBack
     blueCurrentHealth = FindObjectOfType <BluePlayerHealthManager>();
 }