示例#1
0
    protected void GetReferences()
    {
        gameManagerRef  = GameManager.GetInstance();
        enemyManagerRef = EnemyManager.GetInstance();

        mySpriteRenderer = GetComponent <SpriteRenderer>();

        enemyManagerRef.AddToEnemyList(this);

        body = GetComponent <Rigidbody2D>();

        audioManagerRef = AudioManager.GetInstance();

        if (isShip)
        {
            mask = GetComponentInChildren <SpriteMask>().gameObject;
            mask.SetActive(false);
        }
    }