Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     im        = GetComponent <InputManager> ();
     rb        = GetComponent <Rigidbody> ();
     ca        = GetComponent <CircleAttack> ();
     dfob      = GetComponent <DisplayFloatOnBar> ();
     canSpawn  = true;
     phase     = Resources.Load("Phase") as AudioClip;
     errorClip = Resources.Load("Error") as AudioClip;
     ready     = Resources.Load("Ready") as AudioClip;
 }
Beispiel #2
0
        private void HotKeyManager_HotKeyPressed(object sender, HotKeyEventArgs e)
        {
            if (e.Key == Keys.O && e.Modifiers == (KeyModifiers.Shift | KeyModifiers.Alt))
            {
                // add circle on me
                CircleAttack f = new CircleAttack();
                f.FixCenter = true;
                f.Center    = Core.Me.Location.Convert();

                f.HeadingOffset = Core.Me.Heading;
                f.Radius        = 3;
                f.Color         = Color.FromArgb(0x70, 0x70, 0, 0);
                f.PointColor    = Color.FromArgb(0x70, 0x70, 0x70, 0);

                customPoints.AddDrawItem(f);
            }

            if (e.Key == Keys.I && e.Modifiers == (KeyModifiers.Shift | KeyModifiers.Alt))
            {
                customPoints = new ComplexDrawCommand();
            }
        }