Example #1
0
 private void Start()
 {
     rb = gameObject.GetComponent <Rigidbody2D>();
     original_Z_rotation = transform.rotation.z;
     if (this.gameObject.name == "Canon1")
     {
         shellManager = GameObject.Find("ShellManager1").GetComponent <ShellGenerator>();
     }
     else
     {
         shellManager = GameObject.Find("ShellManager2").GetComponent <ShellGenerator>();
     }
 }
Example #2
0
        public Accutron(TeamRoster teamRoster, Team team) : base(teamRoster, team)
        {
            _profile = new Profile("Accutron", "High accuracy, low armor sniper", 'a');

            primary   = new Rifle(this);
            secondary = new Pistol(this);
            ability   = new ShellGenerator(this);
            ultimate  = new LaserSweep(this);

            _options.Add(primary);
            _options.Add(secondary);
            _options.Add(ability);
            _options.Add(ultimate);
        }