Esempio n. 1
0
    void Initialize_References()
    {
        rb = this.GetComponentInChildren <Rigidbody2D>();
        sr = this.GetComponentInChildren <SpriteRenderer>();

        player = HushPuppy.safeFindComponent("Player", "Player") as Player;
    }
Esempio n. 2
0
    void Start()
    {
        player = HushPuppy.safeFindComponent("Player", "Player") as Player;

        sprite.enabled = false;
        Set_Rotation();
    }
Esempio n. 3
0
    void init()
    {
        rb        = this.GetComponentInChildren <Rigidbody2D>();
        sr        = this.GetComponentInChildren <SpriteRenderer>();
        particles = this.GetComponentInChildren <EnemyParticles>();

        player = (Player)HushPuppy.safeFindComponent("Player", "Player");
    }
Esempio n. 4
0
    public static ObjectPoolManager GetObjectPoolManager()
    {
        var o = (ObjectPoolManager)HushPuppy.safeFindComponent("GameController", "ObjectPoolManager");

        if (o == null)
        {
            print("Inactive"); Debug.Break();
        }
        return(o);
    }
Esempio n. 5
0
    public void Initialize()
    {
        worldCanvas = HushPuppy.safeFind("WorldCanvas");
        player      = HushPuppy.safeFindComponent("Player", "Player") as Player;

        GameObject aux = Instantiate(spearCapture_prefab, worldCanvas.transform, false);

        aux.transform.position = this.transform.position;
        spearCapture           = aux.GetComponentInChildren <Image>();
    }
Esempio n. 6
0
    public void Take_Damage(int amount)
    {
        if (took_hit_invincible)
        {
            return;
        }

        health -= (float)amount / 100f;
        if (health < 0)
        {
            ((SceneLoader)HushPuppy.safeFindComponent("GameController", "SceneLoader")).Game_Over();
            Destroy(this.gameObject);
        }

        StartCoroutine(Take_Damage_Cooldown());
    }
Esempio n. 7
0
    public static DialogManager Get()
    {
        var gc = GameObject.FindGameObjectWithTag("GameController");

        if (gc == null)
        {
            Debug.LogError("GameController not found."); return(null);
        }
        var o = gc.GetComponent <DialogManager>();

        if (o == null)
        {
            Debug.LogError("DialogManager not found in GameController."); return(null);
        }
        return((DialogManager)HushPuppy.safeFindComponent("GameController", "DialogManager"));
    }
Esempio n. 8
0
 public static PortraitDatabase getPortraitDatabase()
 {
     return((PortraitDatabase)HushPuppy.safeFindComponent("Databases", "PortraitDatabase"));
 }
Esempio n. 9
0
 public static MapManager GetMapManager()
 {
     return((MapManager)HushPuppy.safeFindComponent("GameController", "MapManager"));
 }
Esempio n. 10
0
 public static SpecialCamera getSpecialCamera()
 {
     return((SpecialCamera)HushPuppy.safeFindComponent("MainCamera", "SpecialCamera"));
 }
Esempio n. 11
0
 public static CutsceneTyper Get()
 {
     return((CutsceneTyper)HushPuppy.safeFindComponent("GameController", "CutsceneTyper"));
 }
Esempio n. 12
0
 public static DialogManager Get_Dialog_Manager()
 {
     return((DialogManager)HushPuppy.safeFindComponent("GameController", "DialogManager"));
 }
Esempio n. 13
0
 public static PlayerItemManager Get_Player_Item_Manager()
 {
     return((PlayerItemManager)HushPuppy.safeFindComponent("Player", "PlayerItemManager"));
 }
Esempio n. 14
0
 public static EasyAudio Get()
 {
     return((EasyAudio)HushPuppy.safeFindComponent("EasyAudio", "EasyAudio"));
 }
Esempio n. 15
0
 public static InterrogationManager getInterrogationManager()
 {
     return((InterrogationManager)HushPuppy.safeFindComponent("GameController", "InterrogationManager"));
 }
Esempio n. 16
0
 public static EcosystemObserver GetEcosystemObserver()
 {
     return((EcosystemObserver)HushPuppy.safeFindComponent("GameController", "EcosystemObserver"));
 }
Esempio n. 17
0
 public static AudioManager getAudioManager()
 {
     return((AudioManager)HushPuppy.safeFindComponent("AudioManager", "AudioManager"));
 }
Esempio n. 18
0
 public static FadeManager Get()
 {
     return((FadeManager)HushPuppy.safeFindComponent("GameController", "FadeManager"));
 }
Esempio n. 19
0
 public static ClueManager getClueManager()
 {
     return((ClueManager)HushPuppy.safeFindComponent("GameController", "ClueManager"));
 }
Esempio n. 20
0
 void Start()
 {
     playerItems = (PlayerItemManager)HushPuppy.safeFindComponent("Player", "PlayerItemManager");
 }
Esempio n. 21
0
 public static LevelManager getLevelManager()
 {
     return((LevelManager)HushPuppy.safeFindComponent("LevelManager", "LevelManager"));
 }
Esempio n. 22
0
 public static ExplorerManager Get_Explorer_Manager()
 {
     return((ExplorerManager)HushPuppy.safeFindComponent("GameController", "ExplorerManager"));
 }
Esempio n. 23
0
 void OnEnable()
 {
     ps     = GetComponent <ParticleSystem>();
     player = (PlayerHealthManager)HushPuppy.safeFindComponent("Player", "PlayerHealthManager");
 }
Esempio n. 24
0
 public static PortraitManager getPortraitManager()
 {
     return((PortraitManager)HushPuppy.safeFindComponent("GameController", "PortraitManager"));
 }
Esempio n. 25
0
    void Start()
    {
        player = HushPuppy.safeFindComponent("Player", "Player") as Player;

        StartCoroutine(Handle_AI());
    }
Esempio n. 26
0
 public static InventoryManager Get()
 {
     return((InventoryManager)HushPuppy.safeFindComponent("GameController", "InventoryManager"));
 }
Esempio n. 27
0
 public static BulletEventManager getBulletEventManager()
 {
     return((BulletEventManager)HushPuppy.safeFindComponent("GameController", "BulletEventManager"));
 }
 public static ArgumentMinimapManager getArgumentMinimapManager()
 {
     return((ArgumentMinimapManager)HushPuppy.safeFindComponent("GameController", "ArgumentMinimapManager"));
 }
Esempio n. 29
0
 public static MemoryFragmentManager getMemoryFragmentManager()
 {
     return((MemoryFragmentManager)HushPuppy.safeFindComponent("GameController", "MemoryFragmentManager"));
 }
Esempio n. 30
0
 public static SoundtrackManager Get()
 {
     return((SoundtrackManager)HushPuppy.safeFindComponent("AudioManager", "SoundtrackManager"));
 }