Пример #1
0
    //ObjectPoolScript SwingEffectPool;


    // Use this for initializationswing
    void Awake()
    {
        groundMask       = 1 << 8;
        playerGroundMask = 1 << 9;         // maybe nine maybe just a number

        IS = GetComponent <InputScript> ();
        SR = GetComponent <SpriteRenderer> ();
        SS = GameObject.Find("ScoreObject").GetComponent <ScoreScript>();
        SS.AddPlayer(gameObject);
        SPS = GameObject.Find("SoundObject").GetComponent <SoundPlayerScript> ();
        //SwingEffectPool = GameObject.Find ("LinePooler").GetComponent<ObjectPoolScript> ();
    }