Ejemplo n.º 1
0
        public AttackTrail()
        {
            targetedEnemies = new List <(Player, Vector2)>();
            points          = new List <Vector2>();
            drawer          = new TrailDrawer();

            effects = new List <AttackEffect>();
        }
Ejemplo n.º 2
0
    protected virtual void Start()
    {
        mTrackableBehaviour = GetComponent <TrackableBehaviour>();
        if (mTrackableBehaviour)
        {
            mTrackableBehaviour.RegisterTrackableEventHandler(this);
        }

        lineReset    = GameObject.FindGameObjectWithTag("GameController").GetComponent <TrailDrawer>();
        levelChanger = GetComponent <LevelChanger>();
    }
Ejemplo n.º 3
0
        public ConcentrateTrail(Card.Card card)
        {
            this.card       = card;
            isExist         = true;
            delayedDeletion = false;
            points          = new List <Vector2>();
            drawer          = new TrailDrawer();

            arbitraryEffects = new List <ConcentrateEffect>();
            reactEffects     = new List <ConcentrateEffect>();
            terminateEffects = new List <ConcentrateEffect>();
        }
Ejemplo n.º 4
0
        public static void LoadContent(ContentManager content, GraphicsDevice graphics)
        {
            blur = content.Load <Effect>("Shaders/Blur");
            blur.Parameters["width"].SetValue((float)(Screen.ScreenSize.X / 2));
            blur.Parameters["height"].SetValue((float)(Screen.ScreenSize.Y / 2));

            portalMap = content.Load <Effect>("Shaders/PortalMap");
            dottedLineCircleSprite = content.Load <Texture2D>("GameObjects/DottedLineCircle");

            Player.LoadContent(content);
            Gravity.LoadContent(content);
            Finish.LoadContent(content);
            Star.LoadContent(content);
            Portal.LoadContent(content);
            TrailDrawer.LoadContent(content, graphics);
            PortalParticlesDrawer.LoadContent(content);
            GravityParticlesDrawer.LoadContent(content);

            ParticlesDrawer <PortalParticleVertexData> .LoadContent(graphics);

            ParticlesDrawer <GravityParticleVertexData> .LoadContent(graphics);
        }
Ejemplo n.º 5
0
 void GetTrailDrawer()
 {
     trailDrawer = this.gameObject.GetComponent <TrailDrawer>();
 }
Ejemplo n.º 6
0
 void Start()
 {
     startPosition = this.transform.localPosition;
     rb            = GetComponent <Rigidbody2D>();
     lineReset     = GameObject.FindGameObjectWithTag("GameController").GetComponent <TrailDrawer>();
 }