Ejemplo n.º 1
0
    private static void FindBootGameObject()
    {
        var bootGameObject = GameObject.FindGameObjectWithTag(TagUtil.Player);

        if (bootGameObject == null)
        {
            throw new MissingTagException(TagUtil.Player);
        }

        _bootController = bootGameObject.GetComponent <BootController>();

        if (_bootController == null)
        {
            throw new CustomMissingComponentException(TagUtil.BootController);
        }
    }
Ejemplo n.º 2
0
 public static void SetNewBoot(GameObject boot)
 {
     _bootController = boot.GetComponent <BootController>();
 }