Search Unity

Question Unity Container or Zenject Dependency Injection Good or bad

Discussion in 'Scripting' started by sachinhello, Mar 14, 2023.

  1. sachinhello

    sachinhello

    Joined:
    Dec 27, 2018
    Posts:
    35
    I am using singleton in my project to take reference of different manager and controller scripts to another scripts. I am reading some optimization and avoid thing in projects they said to avoid singleton pattern and then I searched how to avoid then I got dependency injection for make Losse coupled code.